﻿#include "Server.ConquestInfoForm.h"
#include "../Server.SMain.h"
#include "../../Shared/Enums.h"
#include "../../Server/MirDatabase/MapInfo.h"
#include "../../Server/MirDatabase/MonsterInfo.h"

using namespace Server::MirDatabase;
using namespace Server::MirEnvir;

namespace Server
{

    Server::MirEnvir::Envir *ConquestInfoForm::getEnvir() const
    {
        return SMain::getEditEnvir();
    }

    ConquestInfoForm::ConquestInfoForm()
    {
        InitializeComponent();

        for (int i = 0; i < getEnvir()->MapInfoList.size(); i++)
        {
            ConquestMap_combo->Items->Add(getEnvir()->MapInfoList[i]);
            PalaceMap_combo->Items->Add(getEnvir()->MapInfoList[i]);
            ExtraMaps_combo->Items->Add(getEnvir()->MapInfoList[i]);
        }

//C# TO C++ CONVERTER TODO TASK: There is no C++ equivalent to the C# 'typeof' operator:
        WarType_combo->Items->AddRange(Enum::GetValues(typeof(ConquestType))->Cast<std::any>()->ToArray());
//C# TO C++ CONVERTER TODO TASK: There is no C++ equivalent to the C# 'typeof' operator:
        WarMode_combo->Items->AddRange(Enum::GetValues(typeof(ConquestGame))->Cast<std::any>()->ToArray());
        WarType_combo->Items->Remove(ConquestType::Forced);

        for (int i = 0; i < getEnvir()->MonsterInfoList.size(); i++)
        {
            if (getEnvir()->MonsterInfoList[i]->AI == 80)
            {
                ArcherIndex_combo->Items->Add(getEnvir()->MonsterInfoList[i]);
            }

            if (getEnvir()->MonsterInfoList[i]->AI == 81)
            {
                GateIndex_combo->Items->Add(getEnvir()->MonsterInfoList[i]);
            }

            if (getEnvir()->MonsterInfoList[i]->AI == 82)
            {
                WallIndex_combo->Items->Add(getEnvir()->MonsterInfoList[i]);
            }

            if (getEnvir()->MonsterInfoList[i]->AI == 74)
            {
                SiegeIndex_combo->Items->Add(getEnvir()->MonsterInfoList[i]);
            }
        }

            UpdateInterface();
    }

    void ConquestInfoForm::ConquestInfoForm_Load(std::any sender, EventArgs *e)
    {

    }

    void ConquestInfoForm::UpdateArchers()
    {
        ArcherIndex_combo->SelectedItem = nullptr;
        ArcherIndex_combo->SelectedIndex = -1;

        if (selectedArcher != nullptr)
        {
            Archer_gb->Enabled = true;
            ArcherIndex_combo->SelectedItem = getEnvir()->MonsterInfoList.FirstOrDefault([&] (std::any x)
            {
                return x->Index == selectedArcher->MobIndex;
            });
//C# TO C++ CONVERTER TODO TASK: There is no C++ equivalent to 'ToString':
            ArchXLoc_textbox->Text = selectedArcher->Location->X.ToString();
//C# TO C++ CONVERTER TODO TASK: There is no C++ equivalent to 'ToString':
            ArchYLoc_textbox->Text = selectedArcher->Location->Y.ToString();
            ArcherName_textbox->Text = selectedArcher->Name;
            ArcherCost_textbox->Text = std::to_string(selectedArcher->RepairCost);
        }
        else
        {
            Archer_gb->Enabled = false;
            ArchXLoc_textbox->Text = "";
            ArchYLoc_textbox->Text = "";
            ArcherName_textbox->Text = "";
            ArcherCost_textbox->Text = "";
        }
    }

    void ConquestInfoForm::UpdateFlags()
    {
        if (selectedFlag != nullptr)
        {
            Flag_gb->Enabled = true;
//C# TO C++ CONVERTER TODO TASK: There is no C++ equivalent to 'ToString':
            FlagXLoc_textbox->Text = selectedFlag->Location->X.ToString();
//C# TO C++ CONVERTER TODO TASK: There is no C++ equivalent to 'ToString':
            FlagYLoc_textbox->Text = selectedFlag->Location->Y.ToString();
            FlagName_textbox->Text = selectedFlag->Name;
            FlagFilename_textbox->Text = selectedFlag->FileName;
        }
        else
        {
            Flag_gb->Enabled = false;
            FlagXLoc_textbox->Text = "";
            FlagYLoc_textbox->Text = "";
            FlagName_textbox->Text = "";
            FlagFilename_textbox->Text = "";
        }
    }

    void ConquestInfoForm::UpdateGates()
    {
        if (selectedGate != nullptr)
        {
            Gates_gb->Enabled = true;
            GateIndex_combo->SelectedItem = getEnvir()->MonsterInfoList.FirstOrDefault([&] (std::any x)
            {
                return x->Index == selectedGate->MobIndex;
            });
//C# TO C++ CONVERTER TODO TASK: There is no C++ equivalent to 'ToString':
            GateXLoc_textbox->Text = selectedGate->Location->X.ToString();
//C# TO C++ CONVERTER TODO TASK: There is no C++ equivalent to 'ToString':
            GateYLoc_textbox->Text = selectedGate->Location->Y.ToString();
            GateName_textbox->Text = selectedGate->Name;
            GateCost_textbox->Text = std::to_string(selectedGate->RepairCost);

        }
        else
        {
            Gates_gb->Enabled = false;
            GateIndex_combo->SelectedItem = -1;
            GateXLoc_textbox->Text = "";
            GateYLoc_textbox->Text = "";
            GateName_textbox->Text = "";
            GateCost_textbox->Text = "";
        }

    }

    void ConquestInfoForm::UpdateWalls()
    {
        if (selectedWall != nullptr)
        {
            Walls_gb->Enabled = true;
            WallIndex_combo->SelectedItem = getEnvir()->MonsterInfoList.FirstOrDefault([&] (std::any x)
            {
                return x->Index == selectedWall->MobIndex;
            });
//C# TO C++ CONVERTER TODO TASK: There is no C++ equivalent to 'ToString':
            WallXLoc_textbox->Text = selectedWall->Location->X.ToString();
//C# TO C++ CONVERTER TODO TASK: There is no C++ equivalent to 'ToString':
            WallYLoc_textbox->Text = selectedWall->Location->Y.ToString();
            WallName_textbox->Text = selectedWall->Name;
            WallCost_textbox->Text = std::to_string(selectedWall->RepairCost);

        }
        else
        {
            Walls_gb->Enabled = false;
            WallIndex_combo->SelectedItem = -1;
            WallXLoc_textbox->Text = "";
            WallYLoc_textbox->Text = "";
            WallName_textbox->Text = "";
            WallCost_textbox->Text = "";
        }

    }

    void ConquestInfoForm::UpdateSiege()
    {
        if (selectedSiege != nullptr)
        {
            Siege_gb->Enabled = true;
            SiegeIndex_combo->SelectedItem = getEnvir()->MonsterInfoList.FirstOrDefault([&] (std::any x)
            {
                return x->Index == selectedSiege->MobIndex;
            });
//C# TO C++ CONVERTER TODO TASK: There is no C++ equivalent to 'ToString':
            SiegeXLoc_textbox->Text = selectedSiege->Location->X.ToString();
//C# TO C++ CONVERTER TODO TASK: There is no C++ equivalent to 'ToString':
            SiegeYLoc_textbox->Text = selectedSiege->Location->Y.ToString();
            SiegeName_textbox->Text = selectedSiege->Name;
            SiegeCost_textbox->Text = std::to_string(selectedSiege->RepairCost);

        }
        else
        {
            Siege_gb->Enabled = false;
            SiegeIndex_combo->SelectedIndex = -1;
            SiegeXLoc_textbox->Text = "";
            SiegeYLoc_textbox->Text = "";
            SiegeName_textbox->Text = "";
            SiegeCost_textbox->Text = "";
        }
    }

    void ConquestInfoForm::UpdateControlPoints()
    {
        if (selectedControlPoint != nullptr)
        {
            Control_gb->Enabled = true;
//C# TO C++ CONVERTER TODO TASK: There is no C++ equivalent to 'ToString':
            ControlXLoc_textbox->Text = selectedControlPoint->Location->X.ToString();
//C# TO C++ CONVERTER TODO TASK: There is no C++ equivalent to 'ToString':
            ControlYLoc_textbox->Text = selectedControlPoint->Location->Y.ToString();
            ControlName_textbox->Text = selectedControlPoint->Name;
            ControlFilename_textbox->Text = selectedControlPoint->FileName;
        }
        else
        {
            Control_gb->Enabled = false;
            ControlXLoc_textbox->Text = "";
            ControlYLoc_textbox->Text = "";
            ControlName_textbox->Text = "";
            ControlFilename_textbox->Text = "";
        }
    }

    void ConquestInfoForm::UpdateInterface()
    {

        if (ConquestInfoListBox->Items->Count != getEnvir()->ConquestInfos.size())
        {
            ConquestInfoListBox->Items->Clear();

            for (int i = 0; i < getEnvir()->ConquestInfos.size(); i++)
            {
                ConquestInfoListBox->Items->Add(getEnvir()->ConquestInfos[i]);
            }
        }

        selectedConquest = static_cast<ConquestInfo*>(ConquestInfoListBox->SelectedItem);

        if (selectedConquest != nullptr)
        {
            Main_tabs->Enabled = true;

            Index_textbox->Text = std::to_string(selectedConquest->Index);
//C# TO C++ CONVERTER TODO TASK: There is no C++ equivalent to 'ToString':
            Name_textbox->Text = selectedConquest->Name.ToString();
            FullMap_checkbox->Checked = selectedConquest->FullMap;
//C# TO C++ CONVERTER TODO TASK: There is no C++ equivalent to 'ToString':
            LocX_textbox->Text = selectedConquest->Location->X.ToString();
//C# TO C++ CONVERTER TODO TASK: There is no C++ equivalent to 'ToString':
            LocY_textbox->Text = selectedConquest->Location->Y.ToString();
            Size_textbox->Text = std::to_string(selectedConquest->Size);
//C# TO C++ CONVERTER TODO TASK: There is no C++ equivalent to 'ToString':
            ObLocX_textbox->Text = selectedConquest->KingLocation->X.ToString();
//C# TO C++ CONVERTER TODO TASK: There is no C++ equivalent to 'ToString':
            ObLocY_textbox->Text = selectedConquest->KingLocation->Y.ToString();
            ObSize_textbox->Text = std::to_string(selectedConquest->KingSize);
            ConquestMap_combo->SelectedItem = getEnvir()->MapInfoList.FirstOrDefault([&] (std::any x)
            {
                return x->Index == selectedConquest->MapIndex;
            });
            PalaceMap_combo->SelectedItem = getEnvir()->MapInfoList.FirstOrDefault([&] (std::any x)
            {
                return x->Index == selectedConquest->PalaceIndex;
            });
            WarMode_combo->SelectedItem = selectedConquest->Game;
            WarType_combo->SelectedItem = selectedConquest->Type;
            WarLength_num->Value = selectedConquest->WarLength;
            StartHour_num->Value = selectedConquest->StartHour;
            Mon_checkbox->Checked = selectedConquest->Monday;
            Tue_checkbox->Checked = selectedConquest->Tuesday;
            Wed_checkbox->Checked = selectedConquest->Wednesday;
            Thu_checkbox->Checked = selectedConquest->Thursday;
            Fri_checkbox->Checked = selectedConquest->Friday;
            Sat_checkbox->Checked = selectedConquest->Saturday;
            Sun_checkbox->Checked = selectedConquest->Sunday;
            for (int i = 0; i < selectedConquest->ConquestGuards.size(); i++)
            {
                Guards_listbox->Items->Add(selectedConquest->ConquestGuards[i]);
            }

            for (int i = 0; i < selectedConquest->ExtraMaps.size(); i++)
            {
                Maps_listbox->Items->Add(getEnvir()->MapInfoList.FirstOrDefault([&] (std::any x)
                {
                    return x->Index == selectedConquest->ExtraMaps[i];
                }));
            }

            for (int i = 0; i < selectedConquest->ConquestGates.size(); i++)
            {
                Gates_listbox->Items->Add(selectedConquest->ConquestGates[i]);
            }
            for (int i = 0; i < selectedConquest->ConquestWalls.size(); i++)
            {
                Walls_listbox->Items->Add(selectedConquest->ConquestWalls[i]);
            }
            for (int i = 0; i < selectedConquest->ConquestSieges.size(); i++)
            {
                Siege_listbox->Items->Add(selectedConquest->ConquestSieges[i]);
            }

            for (int i = 0; i < selectedConquest->ConquestFlags.size(); i++)
            {
                Flags_listbox->Items->Add(selectedConquest->ConquestFlags[i]);
            }

            for (int i = 0; i < selectedConquest->ControlPoints.size(); i++)
            {
                Controls_listbox->Items->Add(selectedConquest->ControlPoints[i]);
            }
        }
        else
        {
            Maps_listbox->Items->Clear();
            Guards_listbox->Items->Clear();
            Gates_listbox->Items->Clear();
            Walls_listbox->Items->Clear();
            Siege_listbox->Items->Clear();
            Flags_listbox->Items->Clear();
            Index_textbox->Text = "";
            Name_textbox->Text = "";
            FullMap_checkbox->Checked = false;
            LocX_textbox->Text = "";
            LocY_textbox->Text = "";
            Size_textbox->Text = "";
            ObLocX_textbox->Text = "";
            ObLocY_textbox->Text = "";
            ObSize_textbox->Text = "";
            Controls_listbox->Items->Clear();
            ConquestMap_combo->SelectedIndex = -1;
            PalaceMap_combo->SelectedIndex = -1;
            ExtraMaps_combo->SelectedIndex = -1;
            WarType_combo->SelectedIndex = -1;
            WarMode_combo->SelectedIndex = -1;
            ArcherIndex_combo->SelectedIndex = -1;
            ArchXLoc_textbox->Text = "";
            ArchYLoc_textbox->Text = "";
            Archer_gb->Enabled = false;
            SiegeIndex_combo->SelectedIndex = -1;
            SiegeXLoc_textbox->Text = "";
            SiegeYLoc_textbox->Text = "";
            Siege_gb->Enabled = false;
            SiegeName_textbox->Text = "";
            Main_tabs->Enabled = false;
            WarLength_num->Value = 60;
            StartHour_num->Value = 1;
            Mon_checkbox->Checked = false;
            Tue_checkbox->Checked = false;
            Wed_checkbox->Checked = false;
            Thu_checkbox->Checked = false;
            Fri_checkbox->Checked = false;
            Sat_checkbox->Checked = false;
            Sun_checkbox->Checked = false;
        }

    }

    void ConquestInfoForm::ConquestInfoListBox_SelectedIndexChanged(std::any sender, EventArgs *e)
    {
        if (ActiveControl != sender)
        {
            return;
        }
        UpdateInterface();
    }

    void ConquestInfoForm::AddConq_button_Click(std::any sender, EventArgs *e)
    {
        ConquestInfo *tempVar = new ConquestInfo();
        setEnvir(getEnvir() + 1);
        tempVar->Index = getEnvir()->ConquestIndex;
        tempVar->Location = new Point(0, 0);
        tempVar->Size = 10;
        tempVar->Name = "Conquest Wall";
        tempVar->MapIndex = 1;
        tempVar->PalaceIndex = 2;
        getEnvir()->ConquestInfos.push_back(tempVar);
        UpdateInterface();

//C# TO C++ CONVERTER TODO TASK: A 'delete tempVar' statement was not added since tempVar was passed to a method or constructor. Handle memory management manually.
    }

    void ConquestInfoForm::AddGuard_button_Click(std::any sender, EventArgs *e)
    {

        if (selectedConquest != nullptr)
        {
             ConquestArcherInfo *tempVar = new ConquestArcherInfo();
             tempVar->Location = new Point(0, 0);
             tempVar->Name = "Guard";
             tempVar->Index = ++selectedConquest->GuardIndex;
             tempVar->MobIndex = 1;
             tempVar->RepairCost = 1000;
             selectedConquest->ConquestGuards.push_back(tempVar);
             UpdateInterface();

//C# TO C++ CONVERTER TODO TASK: A 'delete tempVar' statement was not added since tempVar was passed to a method or constructor. Handle memory management manually.
        }


    }

    void ConquestInfoForm::Guards_listbox_SelectedIndexChanged(std::any sender, EventArgs *e)
    {
        if (ActiveControl != sender)
        {
            return;
        }
        if (Guards_listbox->SelectedIndex != -1)
        {
            selectedArcher = static_cast<ConquestArcherInfo*>(Guards_listbox->SelectedItem);
            UpdateArchers();
        }
        else
        {
            selectedArcher = nullptr;
        }

    }

    void ConquestInfoForm::AddExtraMap_button_Click(std::any sender, EventArgs *e)
    {
        if (selectedConquest != nullptr && ExtraMaps_combo->SelectedIndex != -1)
        {
            MapInfo *temp = static_cast<MapInfo*>(ExtraMaps_combo->SelectedItem);
            selectedConquest->ExtraMaps.push_back(temp->Index);
            UpdateInterface();
        }

    }

    void ConquestInfoForm::ConquestInfoForm_FormClosed(std::any sender, FormClosedEventArgs *e)
    {
        getEnvir()->SaveDB();
    }

    void ConquestInfoForm::Name_textbox_TextChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (ActiveControl != sender)
        {
            return;
        }
        selectedConquest->Name = ActiveControl->Text;
    }

    void ConquestInfoForm::LocX_textbox_TextChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (ActiveControl != sender)
        {
            return;
        }

        int temp;

        if (!int::TryParse(ActiveControl->Text, temp))
        {
            ActiveControl->BackColor = Color::Red;
            return;
        }
        ActiveControl->BackColor = SystemColors::Window;

        selectedConquest->Location->X = temp;
    }

    void ConquestInfoForm::LocY_textbox_TextChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (ActiveControl != sender)
        {
            return;
        }

        int temp;

        if (!int::TryParse(ActiveControl->Text, temp))
        {
            ActiveControl->BackColor = Color::Red;
            return;
        }
        ActiveControl->BackColor = SystemColors::Window;

        selectedConquest->Location->Y = temp;
    }

    void ConquestInfoForm::Size_textbox_TextChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (ActiveControl != sender)
        {
            return;
        }

        unsigned short temp;

        if (!unsigned short::TryParse(ActiveControl->Text, temp))
        {
            ActiveControl->BackColor = Color::Red;
            return;
        }
        ActiveControl->BackColor = SystemColors::Window;

        selectedConquest->Size = temp;
    }

    void ConquestInfoForm::ArchXLoc_textbox_TextChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (ActiveControl != sender)
        {
            return;
        }

        int temp;

        if (!int::TryParse(ActiveControl->Text, temp))
        {
            ActiveControl->BackColor = Color::Red;
            return;
        }
        ActiveControl->BackColor = SystemColors::Window;
        selectedArcher->Location->X = temp;
    }

    void ConquestInfoForm::ArchYLoc_textbox_TextChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (ActiveControl != sender)
        {
            return;
        }

        int temp;

        if (!int::TryParse(ActiveControl->Text, temp))
        {
            ActiveControl->BackColor = Color::Red;
            return;
        }
        ActiveControl->BackColor = SystemColors::Window;
        selectedArcher->Location->Y = temp;
    }

    void ConquestInfoForm::ConquestMap_combo_SelectedIndexChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (ActiveControl != sender)
        {
            return;
        }

        MapInfo *temp = static_cast<MapInfo*>(ConquestMap_combo->SelectedItem);
        selectedConquest->MapIndex = temp->Index;

    }

    void ConquestInfoForm::PalaceMap_combo_SelectedIndexChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (ActiveControl != sender)
        {
            return;
        }

        MapInfo *temp = static_cast<MapInfo*>(PalaceMap_combo->SelectedItem);
        selectedConquest->PalaceIndex = temp->Index;

    }

    void ConquestInfoForm::ArcherIndex_combo_SelectedIndexChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (ActiveControl != sender)
        {
            return;
        }

        MonsterInfo *temp = static_cast<MonsterInfo*>(ArcherIndex_combo->SelectedItem);
        selectedArcher->MobIndex = temp->Index;
    }

    void ConquestInfoForm::ArcherName_textbox_TextChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (ActiveControl != sender)
        {
            return;
        }
        selectedArcher->Name = ActiveControl->Text;
    }

    void ConquestInfoForm::AddGate_button_Click(std::any sender, EventArgs *e)
    {
        if (selectedConquest != nullptr)
        {
            ConquestGateInfo *tempVar = new ConquestGateInfo();
            tempVar->Location = new Point(0, 0);
            tempVar->Name = "Gate";
            tempVar->Index = ++selectedConquest->GateIndex;
            tempVar->MobIndex = 1;
            tempVar->RepairCost = 1000;
            selectedConquest->ConquestGates.push_back(tempVar);
            UpdateInterface();

//C# TO C++ CONVERTER TODO TASK: A 'delete tempVar' statement was not added since tempVar was passed to a method or constructor. Handle memory management manually.
        }
    }

    void ConquestInfoForm::Gates_listbox_SelectedIndexChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (ActiveControl != sender)
        {
            return;
        }
        if (Gates_listbox->SelectedIndex != -1)
        {
            selectedGate = static_cast<ConquestGateInfo*>(Gates_listbox->SelectedItem);
            UpdateGates();
        }
        else
        {
            selectedGate = nullptr;
        }
    }

    void ConquestInfoForm::GateXLoc_textbox_TextChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (ActiveControl != sender)
        {
            return;
        }

        int temp;

        if (!int::TryParse(ActiveControl->Text, temp))
        {
            ActiveControl->BackColor = Color::Red;
            return;
        }
        ActiveControl->BackColor = SystemColors::Window;
        selectedGate->Location->X = temp;
    }

    void ConquestInfoForm::GateIndex_combo_SelectedIndexChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (ActiveControl != sender)
        {
            return;
        }

        MonsterInfo *temp = static_cast<MonsterInfo*>(GateIndex_combo->SelectedItem);
        selectedGate->MobIndex = temp->Index;
    }

    void ConquestInfoForm::GateYLoc_textbox_TextChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (ActiveControl != sender)
        {
            return;
        }

        int temp;

        if (!int::TryParse(ActiveControl->Text, temp))
        {
            ActiveControl->BackColor = Color::Red;
            return;
        }
        ActiveControl->BackColor = SystemColors::Window;
        selectedGate->Location->Y = temp;
    }

    void ConquestInfoForm::AddWall_button_Click(std::any sender, EventArgs *e)
    {
        if (selectedConquest != nullptr)
        {
            ConquestWallInfo *tempVar = new ConquestWallInfo();
            tempVar->Location = new Point(0, 0);
            tempVar->Name = "Wall";
            tempVar->Index = ++selectedConquest->WallIndex;
            tempVar->MobIndex = 1;
            tempVar->RepairCost = 1000;
            selectedConquest->ConquestWalls.push_back(tempVar);
            UpdateInterface();

//C# TO C++ CONVERTER TODO TASK: A 'delete tempVar' statement was not added since tempVar was passed to a method or constructor. Handle memory management manually.
        }
    }

    void ConquestInfoForm::Walls_listbox_SelectedIndexChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (ActiveControl != sender)
        {
            return;
        }
        if (Walls_listbox->SelectedIndex != -1)
        {
            selectedWall = static_cast<ConquestWallInfo*>(Walls_listbox->SelectedItem);
            UpdateWalls();
        }
        else
        {
            selectedWall = nullptr;
        }
    }

    void ConquestInfoForm::WallIndex_combo_SelectedIndexChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (ActiveControl != sender)
        {
            return;
        }

        MonsterInfo *temp = static_cast<MonsterInfo*>(WallIndex_combo->SelectedItem);
        selectedWall->MobIndex = temp->Index;
    }

    void ConquestInfoForm::WallXLoc_textbox_TextChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (ActiveControl != sender)
        {
            return;
        }

        int temp;

        if (!int::TryParse(ActiveControl->Text, temp))
        {
            ActiveControl->BackColor = Color::Red;
            return;
        }
        ActiveControl->BackColor = SystemColors::Window;
        selectedWall->Location->X = temp;
    }

    void ConquestInfoForm::WallYLoc_textbox_TextChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (ActiveControl != sender)
        {
            return;
        }

        int temp;

        if (!int::TryParse(ActiveControl->Text, temp))
        {
            ActiveControl->BackColor = Color::Red;
            return;
        }
        ActiveControl->BackColor = SystemColors::Window;
        selectedWall->Location->Y = temp;
    }

    void ConquestInfoForm::ArcherCost_textbox_TextChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (ActiveControl != sender)
        {
            return;
        }

        unsigned int temp;

        if (!unsigned int::TryParse(ActiveControl->Text, temp))
        {
            ActiveControl->BackColor = Color::Red;
            return;
        }
        ActiveControl->BackColor = SystemColors::Window;
        selectedArcher->RepairCost = temp;
    }

    void ConquestInfoForm::GateCost_textbox_TextChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (ActiveControl != sender)
        {
            return;
        }

        int temp;

        if (!int::TryParse(ActiveControl->Text, temp) || temp < 0)
        {
            ActiveControl->BackColor = Color::Red;
            return;
        }
        ActiveControl->BackColor = SystemColors::Window;
        selectedGate->RepairCost = temp;
    }

    void ConquestInfoForm::WallCost_textbox_TextChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (ActiveControl != sender)
        {
            return;
        }

        int temp;

        if (!int::TryParse(ActiveControl->Text, temp) || temp < 0)
        {
            ActiveControl->BackColor = Color::Red;
            return;
        }
        ActiveControl->BackColor = SystemColors::Window;
        selectedWall->RepairCost = temp;
    }

    void ConquestInfoForm::GateName_textbox_TextChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (ActiveControl != sender)
        {
            return;
        }
        selectedGate->Name = ActiveControl->Text;
    }

    void ConquestInfoForm::Walls_gb_Enter(std::any sender, EventArgs *e)
    {

    }

    void ConquestInfoForm::WallName_textbox_TextChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (ActiveControl != sender)
        {
            return;
        }
        selectedWall->Name = ActiveControl->Text;
    }

    void ConquestInfoForm::WarType_combo_SelectedIndexChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (ActiveControl != sender)
        {
            return;
        }
            selectedConquest->Type = static_cast<ConquestType>(WarType_combo->SelectedItem);
    }

    void ConquestInfoForm::WarMode_combo_SelectedIndexChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (ActiveControl != sender)
        {
            return;
        }
        selectedConquest->Game = static_cast<ConquestGame>(WarMode_combo->SelectedItem);
    }

    void ConquestInfoForm::WarTimes_gb_Enter(std::any sender, EventArgs *e)
    {

    }

    void ConquestInfoForm::StartHour_num_ValueChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (ActiveControl != sender)
        {
            return;
        }
            selectedConquest->StartHour = static_cast<unsigned char>(StartHour_num->Value);
    }

    void ConquestInfoForm::WarLength_num_ValueChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (ActiveControl != sender)
        {
            return;
        }
            selectedConquest->WarLength = static_cast<int>(WarLength_num->Value);
    }

    void ConquestInfoForm::Mon_checkbox_CheckedChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        selectedConquest->Monday = Mon_checkbox->Checked;
    }

    void ConquestInfoForm::Tue_checkbox_CheckedChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }

        selectedConquest->Tuesday = Tue_checkbox->Checked;
    }

    void ConquestInfoForm::Wed_checkbox_CheckedChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        selectedConquest->Wednesday = Wed_checkbox->Checked;
    }

    void ConquestInfoForm::Thu_checkbox_CheckedChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        selectedConquest->Thursday = Thu_checkbox->Checked;
    }

    void ConquestInfoForm::Fri_checkbox_CheckedChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        selectedConquest->Friday = Fri_checkbox->Checked;
    }

    void ConquestInfoForm::Sat_checkbox_CheckedChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        selectedConquest->Saturday = Sat_checkbox->Checked;
    }

    void ConquestInfoForm::Sun_checkbox_CheckedChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        selectedConquest->Sunday = Sun_checkbox->Checked;
    }

    void ConquestInfoForm::RemoveConq_button_Click(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }

        if (MessageBox::Show("Are you sure you want to remove the selected Conquest?", "Remove Items?", MessageBoxButtons::YesNo) != System::Windows::Forms::DialogResult::Yes)
        {
            return;
        }

        getEnvir()->ConquestInfos.Remove(selectedConquest);

        if (getEnvir()->ConquestInfos.empty())
        {
            getEnvir()->ConquestIndex = 0;
        }

        UpdateInterface();

    }

    void ConquestInfoForm::RemoveMap_button_Click(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (Maps_listbox->SelectedItem != nullptr)
        {
            selectedConquest->ExtraMaps.Remove((static_cast<MapInfo*>(Maps_listbox->SelectedItem))->Index);
        }

        UpdateInterface();
    }

    void ConquestInfoForm::Maps_listbox_SelectedIndexChanged(std::any sender, EventArgs *e)
    {

    }

    void ConquestInfoForm::RemoveGuard_button_Click(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (Guards_listbox->SelectedItem != nullptr)
        {
            selectedConquest->ConquestGuards.Remove(static_cast<ConquestArcherInfo*>(Guards_listbox->SelectedItem));
        }

        UpdateInterface();
    }

    void ConquestInfoForm::RemoveGate_button_Click(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (Gates_listbox->SelectedItem != nullptr)
        {
            selectedConquest->ConquestGates.Remove(static_cast<ConquestGateInfo*>(Gates_listbox->SelectedItem));
        }

        UpdateInterface();
    }

    void ConquestInfoForm::RemoveWall_button_Click(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (Walls_listbox->SelectedItem != nullptr)
        {
            selectedConquest->ConquestWalls.Remove(static_cast<ConquestWallInfo*>(Walls_listbox->SelectedItem));
        }

        UpdateInterface();
    }

    void ConquestInfoForm::ObLocX_textbox_TextChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (ActiveControl != sender)
        {
            return;
        }

        int temp;

        if (!int::TryParse(ActiveControl->Text, temp))
        {
            ActiveControl->BackColor = Color::Red;
            return;
        }
        ActiveControl->BackColor = SystemColors::Window;

        selectedConquest->KingLocation->X = temp;
    }

    void ConquestInfoForm::ObLocY_textbox_TextChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (ActiveControl != sender)
        {
            return;
        }

        int temp;

        if (!int::TryParse(ActiveControl->Text, temp))
        {
            ActiveControl->BackColor = Color::Red;
            return;
        }
        ActiveControl->BackColor = SystemColors::Window;

        selectedConquest->KingLocation->Y = temp;
    }

    void ConquestInfoForm::ObSize_textbox_TextChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (ActiveControl != sender)
        {
            return;
        }

        unsigned short temp;

        if (!unsigned short::TryParse(ActiveControl->Text, temp))
        {
            ActiveControl->BackColor = Color::Red;
            return;
        }
        ActiveControl->BackColor = SystemColors::Window;

        selectedConquest->KingSize = temp;
    }

    void ConquestInfoForm::Siege_listbox_SelectedIndexChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (ActiveControl != sender)
        {
            return;
        }
        if (Siege_listbox->SelectedIndex != -1)
        {
            selectedSiege = static_cast<ConquestSiegeInfo*>(Siege_listbox->SelectedItem);
            UpdateSiege();
        }
        else
        {
            selectedSiege = nullptr;
        }
    }

    void ConquestInfoForm::AddSiege_button_Click(std::any sender, EventArgs *e)
    {
        if (selectedConquest != nullptr)
        {
            ConquestSiegeInfo *tempVar = new ConquestSiegeInfo();
            tempVar->Location = new Point(0, 0);
            tempVar->Name = "Siege";
            tempVar->Index = ++selectedConquest->SiegeIndex;
            tempVar->MobIndex = 1;
            tempVar->RepairCost = 1000;
            selectedConquest->ConquestSieges.push_back(tempVar);
            UpdateInterface();

//C# TO C++ CONVERTER TODO TASK: A 'delete tempVar' statement was not added since tempVar was passed to a method or constructor. Handle memory management manually.
        }
    }

    void ConquestInfoForm::RemoveSiege_button_Click(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (Siege_listbox->SelectedItem != nullptr)
        {
            selectedConquest->ConquestSieges.Remove(static_cast<ConquestSiegeInfo*>(Siege_listbox->SelectedItem));
        }

        UpdateInterface();
    }

    void ConquestInfoForm::SiegeXLoc_textbox_TextChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (ActiveControl != sender)
        {
            return;
        }

        int temp;

        if (!int::TryParse(ActiveControl->Text, temp))
        {
            ActiveControl->BackColor = Color::Red;
            return;
        }
        ActiveControl->BackColor = SystemColors::Window;
        selectedSiege->Location->X = temp;
    }

    void ConquestInfoForm::SiegeYLoc_textbox_TextChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (ActiveControl != sender)
        {
            return;
        }

        int temp;

        if (!int::TryParse(ActiveControl->Text, temp))
        {
            ActiveControl->BackColor = Color::Red;
            return;
        }
        ActiveControl->BackColor = SystemColors::Window;
        selectedSiege->Location->Y = temp;
    }

    void ConquestInfoForm::SiegeName_textbox_TextChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (ActiveControl != sender)
        {
            return;
        }
        selectedSiege->Name = ActiveControl->Text;
    }

    void ConquestInfoForm::SiegeCost_textbox_TextChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (ActiveControl != sender)
        {
            return;
        }

        int temp;

        if (!int::TryParse(ActiveControl->Text, temp) || temp < 0)
        {
            ActiveControl->BackColor = Color::Red;
            return;
        }
        ActiveControl->BackColor = SystemColors::Window;
        selectedSiege->RepairCost = temp;
    }

    void ConquestInfoForm::SiegeIndex_combo_SelectedIndexChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (ActiveControl != sender)
        {
            return;
        }

        MonsterInfo *temp = static_cast<MonsterInfo*>(SiegeIndex_combo->SelectedItem);
        selectedSiege->MobIndex = temp->Index;
    }

    void ConquestInfoForm::RemoveFlag_button_Click(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (Flags_listbox->SelectedItem != nullptr)
        {
            selectedConquest->ConquestFlags.Remove(static_cast<ConquestFlagInfo*>(Flags_listbox->SelectedItem));
        }

        UpdateInterface();
    }

    void ConquestInfoForm::AddFlag_button_Click(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (selectedConquest != nullptr)
        {
            ConquestFlagInfo *tempVar = new ConquestFlagInfo();
            tempVar->Location = new Point(0, 0);
            tempVar->Name = "Flag";
            tempVar->Index = ++selectedConquest->FlagIndex;
            selectedConquest->ConquestFlags.push_back(tempVar);
            UpdateInterface();

//C# TO C++ CONVERTER TODO TASK: A 'delete tempVar' statement was not added since tempVar was passed to a method or constructor. Handle memory management manually.
        }
    }

    void ConquestInfoForm::FlagXLoc_textbox_TextChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (ActiveControl != sender)
        {
            return;
        }

        int temp;

        if (!int::TryParse(ActiveControl->Text, temp))
        {
            ActiveControl->BackColor = Color::Red;
            return;
        }
        ActiveControl->BackColor = SystemColors::Window;
        selectedFlag->Location->X = temp;
    }

    void ConquestInfoForm::FlagYLoc_textbox_TextChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (ActiveControl != sender)
        {
            return;
        }

        int temp;

        if (!int::TryParse(ActiveControl->Text, temp))
        {
            ActiveControl->BackColor = Color::Red;
            return;
        }
        ActiveControl->BackColor = SystemColors::Window;
        selectedFlag->Location->Y = temp;
    }

    void ConquestInfoForm::FlagName_textbox_TextChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (ActiveControl != sender)
        {
            return;
        }
        selectedFlag->Name = ActiveControl->Text;
    }

    void ConquestInfoForm::Flags_listbox_SelectedIndexChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (ActiveControl != sender)
        {
            return;
        }
        if (Flags_listbox->SelectedIndex != -1)
        {
            selectedFlag = static_cast<ConquestFlagInfo*>(Flags_listbox->SelectedItem);
            UpdateFlags();
        }
        else
        {
            selectedFlag = nullptr;
        }
    }

    void ConquestInfoForm::FlagFilename_textbox_TextChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (ActiveControl != sender)
        {
            return;
        }
        selectedFlag->FileName = ActiveControl->Text;
    }

    void ConquestInfoForm::FullMap_checkbox_CheckedChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (ActiveControl != sender)
        {
            return;
        }
        selectedConquest->FullMap = FullMap_checkbox->Checked;
    }

    void ConquestInfoForm::Control_Listbox_SelectedIndexChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (ActiveControl != sender)
        {
            return;
        }
        if (Controls_listbox->SelectedIndex != -1)
        {
            selectedControlPoint = static_cast<ConquestFlagInfo*>(Controls_listbox->SelectedItem);
            UpdateControlPoints();
        }
        else
        {
            selectedControlPoint = nullptr;
        }
    }

    void ConquestInfoForm::AddControl_button_Click(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (selectedConquest != nullptr)
        {
            ConquestFlagInfo *tempVar = new ConquestFlagInfo();
            tempVar->Location = new Point(0, 0);
            tempVar->Name = "Control Point";
            tempVar->Index = ++selectedConquest->ControlPointIndex;
            selectedConquest->ControlPoints.push_back(tempVar);
            UpdateInterface();

//C# TO C++ CONVERTER TODO TASK: A 'delete tempVar' statement was not added since tempVar was passed to a method or constructor. Handle memory management manually.
        }
    }

    void ConquestInfoForm::RemoveControl_button_Click(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (Controls_listbox->SelectedItem != nullptr)
        {
            selectedConquest->ControlPoints.Remove(static_cast<ConquestFlagInfo*>(Controls_listbox->SelectedItem));
        }

        UpdateInterface();
    }

    void ConquestInfoForm::ControlXLoc_textbox_TextChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (ActiveControl != sender)
        {
            return;
        }

        int temp;

        if (!int::TryParse(ActiveControl->Text, temp))
        {
            ActiveControl->BackColor = Color::Red;
            return;
        }
        ActiveControl->BackColor = SystemColors::Window;
        selectedControlPoint->Location->X = temp;
    }

    void ConquestInfoForm::ControlYLoc_textbox_TextChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (ActiveControl != sender)
        {
            return;
        }

        int temp;

        if (!int::TryParse(ActiveControl->Text, temp))
        {
            ActiveControl->BackColor = Color::Red;
            return;
        }
        ActiveControl->BackColor = SystemColors::Window;
        selectedControlPoint->Location->Y = temp;
    }

    void ConquestInfoForm::ControlName_textbox_TextChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (ActiveControl != sender)
        {
            return;
        }
        selectedControlPoint->Name = ActiveControl->Text;
    }

    void ConquestInfoForm::ControlFilename_textbox_TextChanged(std::any sender, EventArgs *e)
    {
        if (selectedConquest == nullptr)
        {
            return;
        }
        if (ActiveControl != sender)
        {
            return;
        }
        selectedControlPoint->FileName = ActiveControl->Text;
    }

    void ConquestInfoForm::Dispose(bool disposing)
    {
        if (disposing && (components != nullptr))
        {
            components->Dispose();
        }
        System::Windows::Forms::Form::Dispose(disposing);
    }

    void ConquestInfoForm::InitializeComponent()
    {
        this->ConquestInfoListBox = new System::Windows::Forms::ListBox();
        this->Main_tabs = new System::Windows::Forms::TabControl();
        this->Info_tab = new System::Windows::Forms::TabPage();
        this->label34 = new System::Windows::Forms::Label();
        this->WarMode_combo = new System::Windows::Forms::ComboBox();
        this->label33 = new System::Windows::Forms::Label();
        this->WarType_combo = new System::Windows::Forms::ComboBox();
        this->Index_textbox = new System::Windows::Forms::TextBox();
        this->label2 = new System::Windows::Forms::Label();
        this->label1 = new System::Windows::Forms::Label();
        this->Name_textbox = new System::Windows::Forms::TextBox();
        this->Maps_tab = new System::Windows::Forms::TabPage();
        this->FullMap_checkbox = new System::Windows::Forms::CheckBox();
        this->RemoveMap_button = new System::Windows::Forms::Button();
        this->label6 = new System::Windows::Forms::Label();
        this->Size_textbox = new System::Windows::Forms::TextBox();
        this->label5 = new System::Windows::Forms::Label();
        this->label4 = new System::Windows::Forms::Label();
        this->label3 = new System::Windows::Forms::Label();
        this->LocX_textbox = new System::Windows::Forms::TextBox();
        this->LocY_textbox = new System::Windows::Forms::TextBox();
        this->AddExtraMap_button = new System::Windows::Forms::Button();
        this->label12 = new System::Windows::Forms::Label();
        this->ExtraMaps_combo = new System::Windows::Forms::ComboBox();
        this->label7 = new System::Windows::Forms::Label();
        this->ConquestMap_combo = new System::Windows::Forms::ComboBox();
        this->Maps_listbox = new System::Windows::Forms::ListBox();
        this->Times_tab = new System::Windows::Forms::TabPage();
        this->label32 = new System::Windows::Forms::Label();
        this->WarTimes_gb = new System::Windows::Forms::GroupBox();
        this->Sat_checkbox = new System::Windows::Forms::CheckBox();
        this->Sun_checkbox = new System::Windows::Forms::CheckBox();
        this->Fri_checkbox = new System::Windows::Forms::CheckBox();
        this->Thu_checkbox = new System::Windows::Forms::CheckBox();
        this->Tue_checkbox = new System::Windows::Forms::CheckBox();
        this->Wed_checkbox = new System::Windows::Forms::CheckBox();
        this->Mon_checkbox = new System::Windows::Forms::CheckBox();
        this->StartHour_num = new System::Windows::Forms::NumericUpDown();
        this->WarLength_num = new System::Windows::Forms::NumericUpDown();
        this->label31 = new System::Windows::Forms::Label();
        this->label35 = new System::Windows::Forms::Label();
        this->games_tab = new System::Windows::Forms::TabPage();
        this->GameTabs = new System::Windows::Forms::TabControl();
        this->palace_tab = new System::Windows::Forms::TabPage();
        this->label8 = new System::Windows::Forms::Label();
        this->PalaceMap_combo = new System::Windows::Forms::ComboBox();
        this->king_tab = new System::Windows::Forms::TabPage();
        this->Objective_gb = new System::Windows::Forms::GroupBox();
        this->label28 = new System::Windows::Forms::Label();
        this->ObSize_textbox = new System::Windows::Forms::TextBox();
        this->label29 = new System::Windows::Forms::Label();
        this->label30 = new System::Windows::Forms::Label();
        this->ObLocX_textbox = new System::Windows::Forms::TextBox();
        this->ObLocY_textbox = new System::Windows::Forms::TextBox();
        this->control_tab = new System::Windows::Forms::TabPage();
        this->RemoveControl_button = new System::Windows::Forms::Button();
        this->AddControl_button = new System::Windows::Forms::Button();
        this->Control_gb = new System::Windows::Forms::GroupBox();
        this->label44 = new System::Windows::Forms::Label();
        this->ControlFilename_textbox = new System::Windows::Forms::TextBox();
        this->label48 = new System::Windows::Forms::Label();
        this->ControlName_textbox = new System::Windows::Forms::TextBox();
        this->label49 = new System::Windows::Forms::Label();
        this->label50 = new System::Windows::Forms::Label();
        this->ControlYLoc_textbox = new System::Windows::Forms::TextBox();
        this->label51 = new System::Windows::Forms::Label();
        this->ControlXLoc_textbox = new System::Windows::Forms::TextBox();
        this->Controls_listbox = new System::Windows::Forms::ListBox();
        this->Guards_tab = new System::Windows::Forms::TabPage();
        this->RemoveGuard_button = new System::Windows::Forms::Button();
        this->AddGuard_button = new System::Windows::Forms::Button();
        this->Archer_gb = new System::Windows::Forms::GroupBox();
        this->label23 = new System::Windows::Forms::Label();
        this->ArcherCost_textbox = new System::Windows::Forms::TextBox();
        this->label14 = new System::Windows::Forms::Label();
        this->ArcherName_textbox = new System::Windows::Forms::TextBox();
        this->label11 = new System::Windows::Forms::Label();
        this->label13 = new System::Windows::Forms::Label();
        this->ArcherIndex_combo = new System::Windows::Forms::ComboBox();
        this->label9 = new System::Windows::Forms::Label();
        this->ArchYLoc_textbox = new System::Windows::Forms::TextBox();
        this->label10 = new System::Windows::Forms::Label();
        this->ArchXLoc_textbox = new System::Windows::Forms::TextBox();
        this->Guards_listbox = new System::Windows::Forms::ListBox();
        this->Gates_tab = new System::Windows::Forms::TabPage();
        this->RemoveGate_button = new System::Windows::Forms::Button();
        this->AddGate_button = new System::Windows::Forms::Button();
        this->Gates_gb = new System::Windows::Forms::GroupBox();
        this->label24 = new System::Windows::Forms::Label();
        this->GateCost_textbox = new System::Windows::Forms::TextBox();
        this->label25 = new System::Windows::Forms::Label();
        this->GateName_textbox = new System::Windows::Forms::TextBox();
        this->label16 = new System::Windows::Forms::Label();
        this->label17 = new System::Windows::Forms::Label();
        this->GateIndex_combo = new System::Windows::Forms::ComboBox();
        this->label18 = new System::Windows::Forms::Label();
        this->GateYLoc_textbox = new System::Windows::Forms::TextBox();
        this->label19 = new System::Windows::Forms::Label();
        this->GateXLoc_textbox = new System::Windows::Forms::TextBox();
        this->Gates_listbox = new System::Windows::Forms::ListBox();
        this->Walls_tab = new System::Windows::Forms::TabPage();
        this->RemoveWall_button = new System::Windows::Forms::Button();
        this->AddWall_button = new System::Windows::Forms::Button();
        this->Walls_gb = new System::Windows::Forms::GroupBox();
        this->label26 = new System::Windows::Forms::Label();
        this->WallCost_textbox = new System::Windows::Forms::TextBox();
        this->label27 = new System::Windows::Forms::Label();
        this->WallName_textbox = new System::Windows::Forms::TextBox();
        this->label15 = new System::Windows::Forms::Label();
        this->label20 = new System::Windows::Forms::Label();
        this->WallIndex_combo = new System::Windows::Forms::ComboBox();
        this->label21 = new System::Windows::Forms::Label();
        this->WallYLoc_textbox = new System::Windows::Forms::TextBox();
        this->label22 = new System::Windows::Forms::Label();
        this->WallXLoc_textbox = new System::Windows::Forms::TextBox();
        this->Walls_listbox = new System::Windows::Forms::ListBox();
        this->Siege_tab = new System::Windows::Forms::TabPage();
        this->RemoveSiege_button = new System::Windows::Forms::Button();
        this->AddSiege_button = new System::Windows::Forms::Button();
        this->Siege_gb = new System::Windows::Forms::GroupBox();
        this->label36 = new System::Windows::Forms::Label();
        this->SiegeCost_textbox = new System::Windows::Forms::TextBox();
        this->label37 = new System::Windows::Forms::Label();
        this->SiegeName_textbox = new System::Windows::Forms::TextBox();
        this->label38 = new System::Windows::Forms::Label();
        this->label39 = new System::Windows::Forms::Label();
        this->SiegeIndex_combo = new System::Windows::Forms::ComboBox();
        this->label40 = new System::Windows::Forms::Label();
        this->SiegeYLoc_textbox = new System::Windows::Forms::TextBox();
        this->label41 = new System::Windows::Forms::Label();
        this->SiegeXLoc_textbox = new System::Windows::Forms::TextBox();
        this->Siege_listbox = new System::Windows::Forms::ListBox();
        this->flags_tab = new System::Windows::Forms::TabPage();
        this->RemoveFlag_button = new System::Windows::Forms::Button();
        this->AddFlag_button = new System::Windows::Forms::Button();
        this->Flag_gb = new System::Windows::Forms::GroupBox();
        this->label42 = new System::Windows::Forms::Label();
        this->FlagFilename_textbox = new System::Windows::Forms::TextBox();
        this->label43 = new System::Windows::Forms::Label();
        this->FlagName_textbox = new System::Windows::Forms::TextBox();
        this->label45 = new System::Windows::Forms::Label();
        this->label46 = new System::Windows::Forms::Label();
        this->FlagYLoc_textbox = new System::Windows::Forms::TextBox();
        this->label47 = new System::Windows::Forms::Label();
        this->FlagXLoc_textbox = new System::Windows::Forms::TextBox();
        this->Flags_listbox = new System::Windows::Forms::ListBox();
        this->AddConq_button = new System::Windows::Forms::Button();
        this->RemoveConq_button = new System::Windows::Forms::Button();
        this->Main_tabs->SuspendLayout();
        this->Info_tab->SuspendLayout();
        this->Maps_tab->SuspendLayout();
        this->Times_tab->SuspendLayout();
        this->WarTimes_gb->SuspendLayout();
        (static_cast<System::ComponentModel::ISupportInitialize*>(this->StartHour_num))->BeginInit();
        (static_cast<System::ComponentModel::ISupportInitialize*>(this->WarLength_num))->BeginInit();
        this->games_tab->SuspendLayout();
        this->GameTabs->SuspendLayout();
        this->palace_tab->SuspendLayout();
        this->king_tab->SuspendLayout();
        this->Objective_gb->SuspendLayout();
        this->control_tab->SuspendLayout();
        this->Control_gb->SuspendLayout();
        this->Guards_tab->SuspendLayout();
        this->Archer_gb->SuspendLayout();
        this->Gates_tab->SuspendLayout();
        this->Gates_gb->SuspendLayout();
        this->Walls_tab->SuspendLayout();
        this->Walls_gb->SuspendLayout();
        this->Siege_tab->SuspendLayout();
        this->Siege_gb->SuspendLayout();
        this->flags_tab->SuspendLayout();
        this->Flag_gb->SuspendLayout();
        this->SuspendLayout();
        // 
        // ConquestInfoListBox
        // 
        this->ConquestInfoListBox->Anchor = (static_cast<System::Windows::Forms::AnchorStyles*>((((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Bottom) | System::Windows::Forms::AnchorStyles::Left) | System::Windows::Forms::AnchorStyles::Right)));
        this->ConquestInfoListBox->Font = new System::Drawing::Font("Tahoma", 9.0F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->ConquestInfoListBox->FormattingEnabled = true;
        this->ConquestInfoListBox->ItemHeight = 14;
        this->ConquestInfoListBox->Location = new System::Drawing::Point(12, 13);
        this->ConquestInfoListBox->Name = "ConquestInfoListBox";
        this->ConquestInfoListBox->Size = new System::Drawing::Size(200, 214);
        this->ConquestInfoListBox->TabIndex = 8;
        this->ConquestInfoListBox->SelectedIndexChanged += new System::EventHandler(this->ConquestInfoListBox_SelectedIndexChanged);
        // 
        // Main_tabs
        // 
        this->Main_tabs->Controls->Add(this->Info_tab);
        this->Main_tabs->Controls->Add(this->Maps_tab);
        this->Main_tabs->Controls->Add(this->Times_tab);
        this->Main_tabs->Controls->Add(this->games_tab);
        this->Main_tabs->Controls->Add(this->Guards_tab);
        this->Main_tabs->Controls->Add(this->Gates_tab);
        this->Main_tabs->Controls->Add(this->Walls_tab);
        this->Main_tabs->Controls->Add(this->Siege_tab);
        this->Main_tabs->Controls->Add(this->flags_tab);
        this->Main_tabs->Enabled = false;
        this->Main_tabs->Location = new System::Drawing::Point(207, 12);
        this->Main_tabs->Name = "Main_tabs";
        this->Main_tabs->SelectedIndex = 0;
        this->Main_tabs->Size = new System::Drawing::Size(404, 242);
        this->Main_tabs->TabIndex = 9;
        // 
        // Info_tab
        // 
        this->Info_tab->Controls->Add(this->label34);
        this->Info_tab->Controls->Add(this->WarMode_combo);
        this->Info_tab->Controls->Add(this->label33);
        this->Info_tab->Controls->Add(this->WarType_combo);
        this->Info_tab->Controls->Add(this->Index_textbox);
        this->Info_tab->Controls->Add(this->label2);
        this->Info_tab->Controls->Add(this->label1);
        this->Info_tab->Controls->Add(this->Name_textbox);
        this->Info_tab->Font = new System::Drawing::Font("Tahoma", 9.0F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->Info_tab->Location = new System::Drawing::Point(4, 22);
        this->Info_tab->Name = "Info_tab";
        this->Info_tab->Padding = new System::Windows::Forms::Padding(3);
        this->Info_tab->Size = new System::Drawing::Size(396, 216);
        this->Info_tab->TabIndex = 0;
        this->Info_tab->Text = "Info";
        this->Info_tab->UseVisualStyleBackColor = true;
        // 
        // label34
        // 
        this->label34->AutoSize = true;
        this->label34->Font = new System::Drawing::Font("Tahoma", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label34->Location = new System::Drawing::Point(13, 131);
        this->label34->Name = "label34";
        this->label34->Size = new System::Drawing::Size(67, 16);
        this->label34->TabIndex = 64;
        this->label34->Text = "War Mode";
        // 
        // WarMode_combo
        // 
        this->WarMode_combo->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
        this->WarMode_combo->FormattingEnabled = true;
        this->WarMode_combo->Location = new System::Drawing::Point(16, 147);
        this->WarMode_combo->Name = "WarMode_combo";
        this->WarMode_combo->Size = new System::Drawing::Size(221, 22);
        this->WarMode_combo->TabIndex = 63;
        this->WarMode_combo->SelectedIndexChanged += new System::EventHandler(this->WarMode_combo_SelectedIndexChanged);
        // 
        // label33
        // 
        this->label33->AutoSize = true;
        this->label33->Font = new System::Drawing::Font("Tahoma", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label33->Location = new System::Drawing::Point(13, 83);
        this->label33->Name = "label33";
        this->label33->Size = new System::Drawing::Size(68, 16);
        this->label33->TabIndex = 62;
        this->label33->Text = "Start Type";
        // 
        // WarType_combo
        // 
        this->WarType_combo->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
        this->WarType_combo->FormattingEnabled = true;
        this->WarType_combo->Location = new System::Drawing::Point(16, 99);
        this->WarType_combo->Name = "WarType_combo";
        this->WarType_combo->Size = new System::Drawing::Size(221, 22);
        this->WarType_combo->TabIndex = 61;
        this->WarType_combo->SelectedIndexChanged += new System::EventHandler(this->WarType_combo_SelectedIndexChanged);
        // 
        // Index_textbox
        // 
        this->Index_textbox->Enabled = false;
        this->Index_textbox->Location = new System::Drawing::Point(316, 6);
        this->Index_textbox->Name = "Index_textbox";
        this->Index_textbox->ReadOnly = true;
        this->Index_textbox->Size = new System::Drawing::Size(54, 22);
        this->Index_textbox->TabIndex = 3;
        // 
        // label2
        // 
        this->label2->AutoSize = true;
        this->label2->Font = new System::Drawing::Font("Tahoma", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label2->Location = new System::Drawing::Point(273, 8);
        this->label2->Name = "label2";
        this->label2->Size = new System::Drawing::Size(44, 16);
        this->label2->TabIndex = 2;
        this->label2->Text = "Index:";
        // 
        // label1
        // 
        this->label1->AutoSize = true;
        this->label1->Font = new System::Drawing::Font("Tahoma", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label1->Location = new System::Drawing::Point(14, 36);
        this->label1->Name = "label1";
        this->label1->Size = new System::Drawing::Size(41, 16);
        this->label1->TabIndex = 1;
        this->label1->Text = "Name";
        // 
        // Name_textbox
        // 
        this->Name_textbox->Location = new System::Drawing::Point(16, 52);
        this->Name_textbox->Name = "Name_textbox";
        this->Name_textbox->Size = new System::Drawing::Size(221, 22);
        this->Name_textbox->TabIndex = 0;
        this->Name_textbox->TextChanged += new System::EventHandler(this->Name_textbox_TextChanged);
        // 
        // Maps_tab
        // 
        this->Maps_tab->Controls->Add(this->FullMap_checkbox);
        this->Maps_tab->Controls->Add(this->RemoveMap_button);
        this->Maps_tab->Controls->Add(this->label6);
        this->Maps_tab->Controls->Add(this->Size_textbox);
        this->Maps_tab->Controls->Add(this->label5);
        this->Maps_tab->Controls->Add(this->label4);
        this->Maps_tab->Controls->Add(this->label3);
        this->Maps_tab->Controls->Add(this->LocX_textbox);
        this->Maps_tab->Controls->Add(this->LocY_textbox);
        this->Maps_tab->Controls->Add(this->AddExtraMap_button);
        this->Maps_tab->Controls->Add(this->label12);
        this->Maps_tab->Controls->Add(this->ExtraMaps_combo);
        this->Maps_tab->Controls->Add(this->label7);
        this->Maps_tab->Controls->Add(this->ConquestMap_combo);
        this->Maps_tab->Controls->Add(this->Maps_listbox);
        this->Maps_tab->Location = new System::Drawing::Point(4, 22);
        this->Maps_tab->Name = "Maps_tab";
        this->Maps_tab->Size = new System::Drawing::Size(396, 216);
        this->Maps_tab->TabIndex = 2;
        this->Maps_tab->Text = "Maps";
        this->Maps_tab->UseVisualStyleBackColor = true;
        // 
        // FullMap_checkbox
        // 
        this->FullMap_checkbox->AutoSize = true;
        this->FullMap_checkbox->Location = new System::Drawing::Point(34, 129);
        this->FullMap_checkbox->Name = "FullMap_checkbox";
        this->FullMap_checkbox->Size = new System::Drawing::Size(65, 17);
        this->FullMap_checkbox->TabIndex = 51;
        this->FullMap_checkbox->Text = "Full Map";
        this->FullMap_checkbox->UseVisualStyleBackColor = true;
        this->FullMap_checkbox->CheckedChanged += new System::EventHandler(this->FullMap_checkbox_CheckedChanged);
        // 
        // RemoveMap_button
        // 
        this->RemoveMap_button->Location = new System::Drawing::Point(359, 111);
        this->RemoveMap_button->Name = "RemoveMap_button";
        this->RemoveMap_button->Size = new System::Drawing::Size(25, 23);
        this->RemoveMap_button->TabIndex = 50;
        this->RemoveMap_button->Text = "-";
        this->RemoveMap_button->UseVisualStyleBackColor = true;
        this->RemoveMap_button->Click += new System::EventHandler(this->RemoveMap_button_Click);
        // 
        // label6
        // 
        this->label6->AutoSize = true;
        this->label6->Font = new System::Drawing::Font("Tahoma", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label6->Location = new System::Drawing::Point(86, 91);
        this->label6->Name = "label6";
        this->label6->Size = new System::Drawing::Size(32, 16);
        this->label6->TabIndex = 49;
        this->label6->Text = "Size";
        // 
        // Size_textbox
        // 
        this->Size_textbox->Location = new System::Drawing::Point(119, 89);
        this->Size_textbox->Name = "Size_textbox";
        this->Size_textbox->Size = new System::Drawing::Size(43, 21);
        this->Size_textbox->TabIndex = 48;
        this->Size_textbox->TextChanged += new System::EventHandler(this->Size_textbox_TextChanged);
        // 
        // label5
        // 
        this->label5->AutoSize = true;
        this->label5->Font = new System::Drawing::Font("Tahoma", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label5->Location = new System::Drawing::Point(18, 104);
        this->label5->Name = "label5";
        this->label5->Size = new System::Drawing::Size(15, 16);
        this->label5->TabIndex = 47;
        this->label5->Text = "Y";
        // 
        // label4
        // 
        this->label4->AutoSize = true;
        this->label4->Font = new System::Drawing::Font("Tahoma", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label4->Location = new System::Drawing::Point(18, 77);
        this->label4->Name = "label4";
        this->label4->Size = new System::Drawing::Size(16, 16);
        this->label4->TabIndex = 46;
        this->label4->Text = "X";
        // 
        // label3
        // 
        this->label3->AutoSize = true;
        this->label3->Font = new System::Drawing::Font("Tahoma", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label3->Location = new System::Drawing::Point(17, 57);
        this->label3->Name = "label3";
        this->label3->Size = new System::Drawing::Size(55, 16);
        this->label3->TabIndex = 44;
        this->label3->Text = "Location";
        // 
        // LocX_textbox
        // 
        this->LocX_textbox->Location = new System::Drawing::Point(34, 75);
        this->LocX_textbox->Name = "LocX_textbox";
        this->LocX_textbox->Size = new System::Drawing::Size(41, 21);
        this->LocX_textbox->TabIndex = 45;
        this->LocX_textbox->TextChanged += new System::EventHandler(this->LocX_textbox_TextChanged);
        // 
        // LocY_textbox
        // 
        this->LocY_textbox->Location = new System::Drawing::Point(34, 102);
        this->LocY_textbox->Name = "LocY_textbox";
        this->LocY_textbox->Size = new System::Drawing::Size(41, 21);
        this->LocY_textbox->TabIndex = 43;
        this->LocY_textbox->TextChanged += new System::EventHandler(this->LocY_textbox_TextChanged);
        // 
        // AddExtraMap_button
        // 
        this->AddExtraMap_button->Location = new System::Drawing::Point(328, 111);
        this->AddExtraMap_button->Name = "AddExtraMap_button";
        this->AddExtraMap_button->Size = new System::Drawing::Size(25, 23);
        this->AddExtraMap_button->TabIndex = 42;
        this->AddExtraMap_button->Text = "+";
        this->AddExtraMap_button->UseVisualStyleBackColor = true;
        this->AddExtraMap_button->Click += new System::EventHandler(this->AddExtraMap_button_Click);
        // 
        // label12
        // 
        this->label12->AutoSize = true;
        this->label12->Font = new System::Drawing::Font("Tahoma", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label12->Location = new System::Drawing::Point(177, 14);
        this->label12->Name = "label12";
        this->label12->Size = new System::Drawing::Size(145, 16);
        this->label12->TabIndex = 40;
        this->label12->Text = "Extra Maps (Shops, Etc)";
        // 
        // ExtraMaps_combo
        // 
        this->ExtraMaps_combo->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
        this->ExtraMaps_combo->FormattingEnabled = true;
        this->ExtraMaps_combo->Location = new System::Drawing::Point(180, 111);
        this->ExtraMaps_combo->Name = "ExtraMaps_combo";
        this->ExtraMaps_combo->Size = new System::Drawing::Size(125, 21);
        this->ExtraMaps_combo->TabIndex = 41;
        // 
        // label7
        // 
        this->label7->AutoSize = true;
        this->label7->Font = new System::Drawing::Font("Tahoma", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label7->Location = new System::Drawing::Point(14, 14);
        this->label7->Name = "label7";
        this->label7->Size = new System::Drawing::Size(89, 16);
        this->label7->TabIndex = 38;
        this->label7->Text = "Conquest Map";
        // 
        // ConquestMap_combo
        // 
        this->ConquestMap_combo->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
        this->ConquestMap_combo->FormattingEnabled = true;
        this->ConquestMap_combo->Location = new System::Drawing::Point(17, 30);
        this->ConquestMap_combo->Name = "ConquestMap_combo";
        this->ConquestMap_combo->Size = new System::Drawing::Size(145, 21);
        this->ConquestMap_combo->TabIndex = 36;
        this->ConquestMap_combo->SelectedIndexChanged += new System::EventHandler(this->ConquestMap_combo_SelectedIndexChanged);
        // 
        // Maps_listbox
        // 
        this->Maps_listbox->Anchor = (static_cast<System::Windows::Forms::AnchorStyles*>((((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Bottom) | System::Windows::Forms::AnchorStyles::Left) | System::Windows::Forms::AnchorStyles::Right)));
        this->Maps_listbox->Font = new System::Drawing::Font("Tahoma", 9.0F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->Maps_listbox->FormattingEnabled = true;
        this->Maps_listbox->ItemHeight = 14;
        this->Maps_listbox->Location = new System::Drawing::Point(180, 30);
        this->Maps_listbox->Name = "Maps_listbox";
        this->Maps_listbox->Size = new System::Drawing::Size(204, 74);
        this->Maps_listbox->TabIndex = 10;
        this->Maps_listbox->SelectedIndexChanged += new System::EventHandler(this->Maps_listbox_SelectedIndexChanged);
        // 
        // Times_tab
        // 
        this->Times_tab->Controls->Add(this->label32);
        this->Times_tab->Controls->Add(this->WarTimes_gb);
        this->Times_tab->Controls->Add(this->StartHour_num);
        this->Times_tab->Controls->Add(this->WarLength_num);
        this->Times_tab->Controls->Add(this->label31);
        this->Times_tab->Controls->Add(this->label35);
        this->Times_tab->Location = new System::Drawing::Point(4, 22);
        this->Times_tab->Name = "Times_tab";
        this->Times_tab->Size = new System::Drawing::Size(396, 216);
        this->Times_tab->TabIndex = 5;
        this->Times_tab->Text = "Times";
        this->Times_tab->UseVisualStyleBackColor = true;
        // 
        // label32
        // 
        this->label32->AutoSize = true;
        this->label32->Cursor = System::Windows::Forms::Cursors::Default;
        this->label32->Location = new System::Drawing::Point(125, 50);
        this->label32->Name = "label32";
        this->label32->Size = new System::Drawing::Size(40, 13);
        this->label32->TabIndex = 73;
        this->label32->Text = "Length";
        // 
        // WarTimes_gb
        // 
        this->WarTimes_gb->Controls->Add(this->Sat_checkbox);
        this->WarTimes_gb->Controls->Add(this->Sun_checkbox);
        this->WarTimes_gb->Controls->Add(this->Fri_checkbox);
        this->WarTimes_gb->Controls->Add(this->Thu_checkbox);
        this->WarTimes_gb->Controls->Add(this->Tue_checkbox);
        this->WarTimes_gb->Controls->Add(this->Wed_checkbox);
        this->WarTimes_gb->Controls->Add(this->Mon_checkbox);
        this->WarTimes_gb->Location = new System::Drawing::Point(9, 6);
        this->WarTimes_gb->Name = "WarTimes_gb";
        this->WarTimes_gb->Size = new System::Drawing::Size(108, 166);
        this->WarTimes_gb->TabIndex = 72;
        this->WarTimes_gb->TabStop = false;
        this->WarTimes_gb->Text = "War Days";
        this->WarTimes_gb->Enter += new System::EventHandler(this->WarTimes_gb_Enter);
        // 
        // Sat_checkbox
        // 
        this->Sat_checkbox->AutoSize = true;
        this->Sat_checkbox->Location = new System::Drawing::Point(12, 120);
        this->Sat_checkbox->Name = "Sat_checkbox";
        this->Sat_checkbox->Size = new System::Drawing::Size(70, 17);
        this->Sat_checkbox->TabIndex = 77;
        this->Sat_checkbox->Text = "Saturday";
        this->Sat_checkbox->UseVisualStyleBackColor = true;
        this->Sat_checkbox->CheckedChanged += new System::EventHandler(this->Sat_checkbox_CheckedChanged);
        // 
        // Sun_checkbox
        // 
        this->Sun_checkbox->AutoSize = true;
        this->Sun_checkbox->Location = new System::Drawing::Point(12, 140);
        this->Sun_checkbox->Name = "Sun_checkbox";
        this->Sun_checkbox->Size = new System::Drawing::Size(62, 17);
        this->Sun_checkbox->TabIndex = 78;
        this->Sun_checkbox->Text = "Sunday";
        this->Sun_checkbox->UseVisualStyleBackColor = true;
        this->Sun_checkbox->CheckedChanged += new System::EventHandler(this->Sun_checkbox_CheckedChanged);
        // 
        // Fri_checkbox
        // 
        this->Fri_checkbox->AutoSize = true;
        this->Fri_checkbox->Location = new System::Drawing::Point(12, 100);
        this->Fri_checkbox->Name = "Fri_checkbox";
        this->Fri_checkbox->Size = new System::Drawing::Size(56, 17);
        this->Fri_checkbox->TabIndex = 76;
        this->Fri_checkbox->Text = "Friday";
        this->Fri_checkbox->UseVisualStyleBackColor = true;
        this->Fri_checkbox->CheckedChanged += new System::EventHandler(this->Fri_checkbox_CheckedChanged);
        // 
        // Thu_checkbox
        // 
        this->Thu_checkbox->AutoSize = true;
        this->Thu_checkbox->Location = new System::Drawing::Point(12, 80);
        this->Thu_checkbox->Name = "Thu_checkbox";
        this->Thu_checkbox->Size = new System::Drawing::Size(71, 17);
        this->Thu_checkbox->TabIndex = 75;
        this->Thu_checkbox->Text = "Thursday";
        this->Thu_checkbox->UseVisualStyleBackColor = true;
        this->Thu_checkbox->CheckedChanged += new System::EventHandler(this->Thu_checkbox_CheckedChanged);
        // 
        // Tue_checkbox
        // 
        this->Tue_checkbox->AutoSize = true;
        this->Tue_checkbox->Location = new System::Drawing::Point(12, 40);
        this->Tue_checkbox->Name = "Tue_checkbox";
        this->Tue_checkbox->Size = new System::Drawing::Size(67, 17);
        this->Tue_checkbox->TabIndex = 73;
        this->Tue_checkbox->Text = "Tuesday";
        this->Tue_checkbox->UseVisualStyleBackColor = true;
        this->Tue_checkbox->CheckedChanged += new System::EventHandler(this->Tue_checkbox_CheckedChanged);
        // 
        // Wed_checkbox
        // 
        this->Wed_checkbox->AutoSize = true;
        this->Wed_checkbox->Location = new System::Drawing::Point(12, 60);
        this->Wed_checkbox->Name = "Wed_checkbox";
        this->Wed_checkbox->Size = new System::Drawing::Size(83, 17);
        this->Wed_checkbox->TabIndex = 74;
        this->Wed_checkbox->Text = "Wednesday";
        this->Wed_checkbox->UseVisualStyleBackColor = true;
        this->Wed_checkbox->CheckedChanged += new System::EventHandler(this->Wed_checkbox_CheckedChanged);
        // 
        // Mon_checkbox
        // 
        this->Mon_checkbox->AutoSize = true;
        this->Mon_checkbox->Location = new System::Drawing::Point(12, 20);
        this->Mon_checkbox->Name = "Mon_checkbox";
        this->Mon_checkbox->Size = new System::Drawing::Size(64, 17);
        this->Mon_checkbox->TabIndex = 71;
        this->Mon_checkbox->Text = "Monday";
        this->Mon_checkbox->UseVisualStyleBackColor = true;
        this->Mon_checkbox->CheckedChanged += new System::EventHandler(this->Mon_checkbox_CheckedChanged);
        // 
        // StartHour_num
        // 
        this->StartHour_num->Location = new System::Drawing::Point(127, 23);
        this->StartHour_num->Maximum = Decimal(std::vector<int> {23, 0, 0, 0});
        this->StartHour_num->Name = "StartHour_num";
        this->StartHour_num->Size = new System::Drawing::Size(74, 21);
        this->StartHour_num->TabIndex = 68;
        this->StartHour_num->Value = Decimal(std::vector<int> {1, 0, 0, 0});
        this->StartHour_num->ValueChanged += new System::EventHandler(this->StartHour_num_ValueChanged);
        // 
        // WarLength_num
        // 
        this->WarLength_num->Location = new System::Drawing::Point(127, 64);
        this->WarLength_num->Maximum = Decimal(std::vector<int> {9999, 0, 0, 0});
        this->WarLength_num->Name = "WarLength_num";
        this->WarLength_num->Size = new System::Drawing::Size(74, 21);
        this->WarLength_num->TabIndex = 64;
        this->WarLength_num->ValueChanged += new System::EventHandler(this->WarLength_num_ValueChanged);
        // 
        // label31
        // 
        this->label31->AutoSize = true;
        this->label31->Cursor = System::Windows::Forms::Cursors::Default;
        this->label31->Location = new System::Drawing::Point(125, 9);
        this->label31->Name = "label31";
        this->label31->Size = new System::Drawing::Size(57, 13);
        this->label31->TabIndex = 61;
        this->label31->Text = "Start Hour";
        // 
        // label35
        // 
        this->label35->AutoSize = true;
        this->label35->Cursor = System::Windows::Forms::Cursors::Default;
        this->label35->Location = new System::Drawing::Point(199, 67);
        this->label35->Name = "label35";
        this->label35->Size = new System::Drawing::Size(52, 13);
        this->label35->TabIndex = 74;
        this->label35->Text = "(minutes)";
        // 
        // games_tab
        // 
        this->games_tab->Controls->Add(this->GameTabs);
        this->games_tab->Location = new System::Drawing::Point(4, 22);
        this->games_tab->Name = "games_tab";
        this->games_tab->Size = new System::Drawing::Size(396, 216);
        this->games_tab->TabIndex = 8;
        this->games_tab->Text = "Games";
        this->games_tab->UseVisualStyleBackColor = true;
        // 
        // GameTabs
        // 
        this->GameTabs->Controls->Add(this->palace_tab);
        this->GameTabs->Controls->Add(this->king_tab);
        this->GameTabs->Controls->Add(this->control_tab);
        this->GameTabs->Location = new System::Drawing::Point(3, 3);
        this->GameTabs->Name = "GameTabs";
        this->GameTabs->SelectedIndex = 0;
        this->GameTabs->Size = new System::Drawing::Size(390, 210);
        this->GameTabs->TabIndex = 0;
        // 
        // palace_tab
        // 
        this->palace_tab->Controls->Add(this->label8);
        this->palace_tab->Controls->Add(this->PalaceMap_combo);
        this->palace_tab->Location = new System::Drawing::Point(4, 22);
        this->palace_tab->Name = "palace_tab";
        this->palace_tab->Padding = new System::Windows::Forms::Padding(3);
        this->palace_tab->Size = new System::Drawing::Size(382, 184);
        this->palace_tab->TabIndex = 1;
        this->palace_tab->Text = "Palace";
        this->palace_tab->UseVisualStyleBackColor = true;
        // 
        // label8
        // 
        this->label8->AutoSize = true;
        this->label8->Font = new System::Drawing::Font("Tahoma", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label8->Location = new System::Drawing::Point(6, 3);
        this->label8->Name = "label8";
        this->label8->Size = new System::Drawing::Size(73, 16);
        this->label8->TabIndex = 41;
        this->label8->Text = "Palace Map";
        // 
        // PalaceMap_combo
        // 
        this->PalaceMap_combo->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
        this->PalaceMap_combo->FormattingEnabled = true;
        this->PalaceMap_combo->Location = new System::Drawing::Point(9, 19);
        this->PalaceMap_combo->Name = "PalaceMap_combo";
        this->PalaceMap_combo->Size = new System::Drawing::Size(145, 21);
        this->PalaceMap_combo->TabIndex = 40;
        this->PalaceMap_combo->SelectedIndexChanged += new System::EventHandler(this->PalaceMap_combo_SelectedIndexChanged);
        // 
        // king_tab
        // 
        this->king_tab->Controls->Add(this->Objective_gb);
        this->king_tab->Location = new System::Drawing::Point(4, 22);
        this->king_tab->Name = "king_tab";
        this->king_tab->Size = new System::Drawing::Size(382, 184);
        this->king_tab->TabIndex = 2;
        this->king_tab->Text = "King";
        this->king_tab->UseVisualStyleBackColor = true;
        // 
        // Objective_gb
        // 
        this->Objective_gb->Controls->Add(this->label28);
        this->Objective_gb->Controls->Add(this->ObSize_textbox);
        this->Objective_gb->Controls->Add(this->label29);
        this->Objective_gb->Controls->Add(this->label30);
        this->Objective_gb->Controls->Add(this->ObLocX_textbox);
        this->Objective_gb->Controls->Add(this->ObLocY_textbox);
        this->Objective_gb->Location = new System::Drawing::Point(3, 3);
        this->Objective_gb->Name = "Objective_gb";
        this->Objective_gb->Size = new System::Drawing::Size(184, 74);
        this->Objective_gb->TabIndex = 52;
        this->Objective_gb->TabStop = false;
        this->Objective_gb->Text = "Objective";
        // 
        // label28
        // 
        this->label28->AutoSize = true;
        this->label28->Font = new System::Drawing::Font("Tahoma", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label28->Location = new System::Drawing::Point(77, 47);
        this->label28->Name = "label28";
        this->label28->Size = new System::Drawing::Size(32, 16);
        this->label28->TabIndex = 56;
        this->label28->Text = "Size";
        // 
        // ObSize_textbox
        // 
        this->ObSize_textbox->Location = new System::Drawing::Point(110, 45);
        this->ObSize_textbox->Name = "ObSize_textbox";
        this->ObSize_textbox->Size = new System::Drawing::Size(48, 21);
        this->ObSize_textbox->TabIndex = 55;
        this->ObSize_textbox->TextChanged += new System::EventHandler(this->ObSize_textbox_TextChanged);
        // 
        // label29
        // 
        this->label29->AutoSize = true;
        this->label29->Font = new System::Drawing::Font("Tahoma", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label29->Location = new System::Drawing::Point(94, 19);
        this->label29->Name = "label29";
        this->label29->Size = new System::Drawing::Size(15, 16);
        this->label29->TabIndex = 54;
        this->label29->Text = "Y";
        // 
        // label30
        // 
        this->label30->AutoSize = true;
        this->label30->Font = new System::Drawing::Font("Tahoma", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label30->Location = new System::Drawing::Point(18, 19);
        this->label30->Name = "label30";
        this->label30->Size = new System::Drawing::Size(16, 16);
        this->label30->TabIndex = 53;
        this->label30->Text = "X";
        // 
        // ObLocX_textbox
        // 
        this->ObLocX_textbox->Location = new System::Drawing::Point(35, 17);
        this->ObLocX_textbox->Name = "ObLocX_textbox";
        this->ObLocX_textbox->Size = new System::Drawing::Size(41, 21);
        this->ObLocX_textbox->TabIndex = 52;
        this->ObLocX_textbox->TextChanged += new System::EventHandler(this->ObLocX_textbox_TextChanged);
        // 
        // ObLocY_textbox
        // 
        this->ObLocY_textbox->Location = new System::Drawing::Point(110, 17);
        this->ObLocY_textbox->Name = "ObLocY_textbox";
        this->ObLocY_textbox->Size = new System::Drawing::Size(48, 21);
        this->ObLocY_textbox->TabIndex = 50;
        this->ObLocY_textbox->TextChanged += new System::EventHandler(this->ObLocY_textbox_TextChanged);
        // 
        // control_tab
        // 
        this->control_tab->Controls->Add(this->RemoveControl_button);
        this->control_tab->Controls->Add(this->AddControl_button);
        this->control_tab->Controls->Add(this->Control_gb);
        this->control_tab->Controls->Add(this->Controls_listbox);
        this->control_tab->Location = new System::Drawing::Point(4, 22);
        this->control_tab->Name = "control_tab";
        this->control_tab->Size = new System::Drawing::Size(382, 184);
        this->control_tab->TabIndex = 3;
        this->control_tab->Text = "Control";
        this->control_tab->UseVisualStyleBackColor = true;
        // 
        // RemoveControl_button
        // 
        this->RemoveControl_button->Location = new System::Drawing::Point(3, 153);
        this->RemoveControl_button->Name = "RemoveControl_button";
        this->RemoveControl_button->Size = new System::Drawing::Size(23, 22);
        this->RemoveControl_button->TabIndex = 26;
        this->RemoveControl_button->Text = "-";
        this->RemoveControl_button->UseVisualStyleBackColor = true;
        this->RemoveControl_button->Click += new System::EventHandler(this->RemoveControl_button_Click);
        // 
        // AddControl_button
        // 
        this->AddControl_button->Location = new System::Drawing::Point(171, 153);
        this->AddControl_button->Name = "AddControl_button";
        this->AddControl_button->Size = new System::Drawing::Size(24, 22);
        this->AddControl_button->TabIndex = 24;
        this->AddControl_button->Text = "+";
        this->AddControl_button->UseVisualStyleBackColor = true;
        this->AddControl_button->Click += new System::EventHandler(this->AddControl_button_Click);
        // 
        // Control_gb
        // 
        this->Control_gb->Controls->Add(this->label44);
        this->Control_gb->Controls->Add(this->ControlFilename_textbox);
        this->Control_gb->Controls->Add(this->label48);
        this->Control_gb->Controls->Add(this->ControlName_textbox);
        this->Control_gb->Controls->Add(this->label49);
        this->Control_gb->Controls->Add(this->label50);
        this->Control_gb->Controls->Add(this->ControlYLoc_textbox);
        this->Control_gb->Controls->Add(this->label51);
        this->Control_gb->Controls->Add(this->ControlXLoc_textbox);
        this->Control_gb->Location = new System::Drawing::Point(201, 3);
        this->Control_gb->Name = "Control_gb";
        this->Control_gb->Size = new System::Drawing::Size(178, 172);
        this->Control_gb->TabIndex = 25;
        this->Control_gb->TabStop = false;
        this->Control_gb->Text = "Edit";
        // 
        // label44
        // 
        this->label44->AutoSize = true;
        this->label44->Font = new System::Drawing::Font("Tahoma", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label44->Location = new System::Drawing::Point(6, 104);
        this->label44->Name = "label44";
        this->label44->Size = new System::Drawing::Size(60, 16);
        this->label44->TabIndex = 47;
        this->label44->Text = "Filename";
        // 
        // ControlFilename_textbox
        // 
        this->ControlFilename_textbox->Location = new System::Drawing::Point(6, 123);
        this->ControlFilename_textbox->Name = "ControlFilename_textbox";
        this->ControlFilename_textbox->Size = new System::Drawing::Size(163, 21);
        this->ControlFilename_textbox->TabIndex = 48;
        this->ControlFilename_textbox->TextChanged += new System::EventHandler(this->ControlFilename_textbox_TextChanged);
        // 
        // label48
        // 
        this->label48->AutoSize = true;
        this->label48->Font = new System::Drawing::Font("Tahoma", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label48->Location = new System::Drawing::Point(6, 56);
        this->label48->Name = "label48";
        this->label48->Size = new System::Drawing::Size(41, 16);
        this->label48->TabIndex = 45;
        this->label48->Text = "Name";
        // 
        // ControlName_textbox
        // 
        this->ControlName_textbox->Location = new System::Drawing::Point(6, 75);
        this->ControlName_textbox->Name = "ControlName_textbox";
        this->ControlName_textbox->Size = new System::Drawing::Size(163, 21);
        this->ControlName_textbox->TabIndex = 46;
        this->ControlName_textbox->TextChanged += new System::EventHandler(this->ControlName_textbox_TextChanged);
        // 
        // label49
        // 
        this->label49->AutoSize = true;
        this->label49->Font = new System::Drawing::Font("Tahoma", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label49->Location = new System::Drawing::Point(6, 14);
        this->label49->Name = "label49";
        this->label49->Size = new System::Drawing::Size(55, 16);
        this->label49->TabIndex = 44;
        this->label49->Text = "Location";
        // 
        // label50
        // 
        this->label50->AutoSize = true;
        this->label50->Font = new System::Drawing::Font("Tahoma", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label50->Location = new System::Drawing::Point(94, 34);
        this->label50->Name = "label50";
        this->label50->Size = new System::Drawing::Size(15, 16);
        this->label50->TabIndex = 16;
        this->label50->Text = "Y";
        // 
        // ControlYLoc_textbox
        // 
        this->ControlYLoc_textbox->Location = new System::Drawing::Point(115, 33);
        this->ControlYLoc_textbox->Name = "ControlYLoc_textbox";
        this->ControlYLoc_textbox->Size = new System::Drawing::Size(54, 21);
        this->ControlYLoc_textbox->TabIndex = 12;
        this->ControlYLoc_textbox->TextChanged += new System::EventHandler(this->ControlYLoc_textbox_TextChanged);
        // 
        // label51
        // 
        this->label51->AutoSize = true;
        this->label51->Font = new System::Drawing::Font("Tahoma", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label51->Location = new System::Drawing::Point(6, 34);
        this->label51->Name = "label51";
        this->label51->Size = new System::Drawing::Size(16, 16);
        this->label51->TabIndex = 15;
        this->label51->Text = "X";
        // 
        // ControlXLoc_textbox
        // 
        this->ControlXLoc_textbox->Location = new System::Drawing::Point(28, 33);
        this->ControlXLoc_textbox->Name = "ControlXLoc_textbox";
        this->ControlXLoc_textbox->Size = new System::Drawing::Size(54, 21);
        this->ControlXLoc_textbox->TabIndex = 14;
        this->ControlXLoc_textbox->TextChanged += new System::EventHandler(this->ControlXLoc_textbox_TextChanged);
        // 
        // Controls_listbox
        // 
        this->Controls_listbox->Anchor = (static_cast<System::Windows::Forms::AnchorStyles*>((((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Bottom) | System::Windows::Forms::AnchorStyles::Left) | System::Windows::Forms::AnchorStyles::Right)));
        this->Controls_listbox->Font = new System::Drawing::Font("Tahoma", 9.0F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->Controls_listbox->FormattingEnabled = true;
        this->Controls_listbox->ItemHeight = 14;
        this->Controls_listbox->Location = new System::Drawing::Point(3, 3);
        this->Controls_listbox->Name = "Controls_listbox";
        this->Controls_listbox->Size = new System::Drawing::Size(192, 144);
        this->Controls_listbox->TabIndex = 23;
        this->Controls_listbox->SelectedIndexChanged += new System::EventHandler(this->Control_Listbox_SelectedIndexChanged);
        // 
        // Guards_tab
        // 
        this->Guards_tab->Controls->Add(this->RemoveGuard_button);
        this->Guards_tab->Controls->Add(this->AddGuard_button);
        this->Guards_tab->Controls->Add(this->Archer_gb);
        this->Guards_tab->Controls->Add(this->Guards_listbox);
        this->Guards_tab->Location = new System::Drawing::Point(4, 22);
        this->Guards_tab->Name = "Guards_tab";
        this->Guards_tab->Size = new System::Drawing::Size(396, 216);
        this->Guards_tab->TabIndex = 1;
        this->Guards_tab->Text = "Archers";
        this->Guards_tab->UseVisualStyleBackColor = true;
        // 
        // RemoveGuard_button
        // 
        this->RemoveGuard_button->Location = new System::Drawing::Point(6, 185);
        this->RemoveGuard_button->Name = "RemoveGuard_button";
        this->RemoveGuard_button->Size = new System::Drawing::Size(23, 22);
        this->RemoveGuard_button->TabIndex = 18;
        this->RemoveGuard_button->Text = "-";
        this->RemoveGuard_button->UseVisualStyleBackColor = true;
        this->RemoveGuard_button->Click += new System::EventHandler(this->RemoveGuard_button_Click);
        // 
        // AddGuard_button
        // 
        this->AddGuard_button->Location = new System::Drawing::Point(156, 185);
        this->AddGuard_button->Name = "AddGuard_button";
        this->AddGuard_button->Size = new System::Drawing::Size(24, 22);
        this->AddGuard_button->TabIndex = 11;
        this->AddGuard_button->Text = "+";
        this->AddGuard_button->UseVisualStyleBackColor = true;
        this->AddGuard_button->Click += new System::EventHandler(this->AddGuard_button_Click);
        // 
        // Archer_gb
        // 
        this->Archer_gb->Controls->Add(this->label23);
        this->Archer_gb->Controls->Add(this->ArcherCost_textbox);
        this->Archer_gb->Controls->Add(this->label14);
        this->Archer_gb->Controls->Add(this->ArcherName_textbox);
        this->Archer_gb->Controls->Add(this->label11);
        this->Archer_gb->Controls->Add(this->label13);
        this->Archer_gb->Controls->Add(this->ArcherIndex_combo);
        this->Archer_gb->Controls->Add(this->label9);
        this->Archer_gb->Controls->Add(this->ArchYLoc_textbox);
        this->Archer_gb->Controls->Add(this->label10);
        this->Archer_gb->Controls->Add(this->ArchXLoc_textbox);
        this->Archer_gb->Location = new System::Drawing::Point(185, 4);
        this->Archer_gb->Name = "Archer_gb";
        this->Archer_gb->Size = new System::Drawing::Size(185, 203);
        this->Archer_gb->TabIndex = 17;
        this->Archer_gb->TabStop = false;
        this->Archer_gb->Text = "Edit";
        // 
        // label23
        // 
        this->label23->AutoSize = true;
        this->label23->Font = new System::Drawing::Font("Tahoma", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label23->Location = new System::Drawing::Point(13, 102);
        this->label23->Name = "label23";
        this->label23->Size = new System::Drawing::Size(77, 16);
        this->label23->TabIndex = 47;
        this->label23->Text = "Recruit Cost";
        // 
        // ArcherCost_textbox
        // 
        this->ArcherCost_textbox->Location = new System::Drawing::Point(15, 121);
        this->ArcherCost_textbox->Name = "ArcherCost_textbox";
        this->ArcherCost_textbox->Size = new System::Drawing::Size(164, 21);
        this->ArcherCost_textbox->TabIndex = 48;
        this->ArcherCost_textbox->TextChanged += new System::EventHandler(this->ArcherCost_textbox_TextChanged);
        // 
        // label14
        // 
        this->label14->AutoSize = true;
        this->label14->Font = new System::Drawing::Font("Tahoma", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label14->Location = new System::Drawing::Point(13, 53);
        this->label14->Name = "label14";
        this->label14->Size = new System::Drawing::Size(41, 16);
        this->label14->TabIndex = 45;
        this->label14->Text = "Name";
        // 
        // ArcherName_textbox
        // 
        this->ArcherName_textbox->Location = new System::Drawing::Point(16, 72);
        this->ArcherName_textbox->Name = "ArcherName_textbox";
        this->ArcherName_textbox->Size = new System::Drawing::Size(163, 21);
        this->ArcherName_textbox->TabIndex = 46;
        this->ArcherName_textbox->TextChanged += new System::EventHandler(this->ArcherName_textbox_TextChanged);
        // 
        // label11
        // 
        this->label11->AutoSize = true;
        this->label11->Font = new System::Drawing::Font("Tahoma", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label11->Location = new System::Drawing::Point(12, 152);
        this->label11->Name = "label11";
        this->label11->Size = new System::Drawing::Size(32, 16);
        this->label11->TabIndex = 43;
        this->label11->Text = "Mob";
        // 
        // label13
        // 
        this->label13->AutoSize = true;
        this->label13->Font = new System::Drawing::Font("Tahoma", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label13->Location = new System::Drawing::Point(12, 11);
        this->label13->Name = "label13";
        this->label13->Size = new System::Drawing::Size(55, 16);
        this->label13->TabIndex = 44;
        this->label13->Text = "Location";
        // 
        // ArcherIndex_combo
        // 
        this->ArcherIndex_combo->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
        this->ArcherIndex_combo->FormattingEnabled = true;
        this->ArcherIndex_combo->Location = new System::Drawing::Point(16, 168);
        this->ArcherIndex_combo->Name = "ArcherIndex_combo";
        this->ArcherIndex_combo->Size = new System::Drawing::Size(163, 21);
        this->ArcherIndex_combo->TabIndex = 42;
        this->ArcherIndex_combo->SelectedIndexChanged += new System::EventHandler(this->ArcherIndex_combo_SelectedIndexChanged);
        // 
        // label9
        // 
        this->label9->AutoSize = true;
        this->label9->Font = new System::Drawing::Font("Tahoma", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label9->Location = new System::Drawing::Point(104, 30);
        this->label9->Name = "label9";
        this->label9->Size = new System::Drawing::Size(15, 16);
        this->label9->TabIndex = 16;
        this->label9->Text = "Y";
        // 
        // ArchYLoc_textbox
        // 
        this->ArchYLoc_textbox->Location = new System::Drawing::Point(125, 28);
        this->ArchYLoc_textbox->Name = "ArchYLoc_textbox";
        this->ArchYLoc_textbox->Size = new System::Drawing::Size(54, 21);
        this->ArchYLoc_textbox->TabIndex = 12;
        this->ArchYLoc_textbox->TextChanged += new System::EventHandler(this->ArchYLoc_textbox_TextChanged);
        // 
        // label10
        // 
        this->label10->AutoSize = true;
        this->label10->Font = new System::Drawing::Font("Tahoma", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label10->Location = new System::Drawing::Point(13, 30);
        this->label10->Name = "label10";
        this->label10->Size = new System::Drawing::Size(16, 16);
        this->label10->TabIndex = 15;
        this->label10->Text = "X";
        // 
        // ArchXLoc_textbox
        // 
        this->ArchXLoc_textbox->Location = new System::Drawing::Point(29, 28);
        this->ArchXLoc_textbox->Name = "ArchXLoc_textbox";
        this->ArchXLoc_textbox->Size = new System::Drawing::Size(54, 21);
        this->ArchXLoc_textbox->TabIndex = 14;
        this->ArchXLoc_textbox->TextChanged += new System::EventHandler(this->ArchXLoc_textbox_TextChanged);
        // 
        // Guards_listbox
        // 
        this->Guards_listbox->Anchor = (static_cast<System::Windows::Forms::AnchorStyles*>((((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Bottom) | System::Windows::Forms::AnchorStyles::Left) | System::Windows::Forms::AnchorStyles::Right)));
        this->Guards_listbox->Font = new System::Drawing::Font("Tahoma", 9.0F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->Guards_listbox->FormattingEnabled = true;
        this->Guards_listbox->ItemHeight = 14;
        this->Guards_listbox->Location = new System::Drawing::Point(7, 11);
        this->Guards_listbox->Name = "Guards_listbox";
        this->Guards_listbox->Size = new System::Drawing::Size(172, 172);
        this->Guards_listbox->TabIndex = 9;
        this->Guards_listbox->SelectedIndexChanged += new System::EventHandler(this->Guards_listbox_SelectedIndexChanged);
        // 
        // Gates_tab
        // 
        this->Gates_tab->Controls->Add(this->RemoveGate_button);
        this->Gates_tab->Controls->Add(this->AddGate_button);
        this->Gates_tab->Controls->Add(this->Gates_gb);
        this->Gates_tab->Controls->Add(this->Gates_listbox);
        this->Gates_tab->Location = new System::Drawing::Point(4, 22);
        this->Gates_tab->Name = "Gates_tab";
        this->Gates_tab->Size = new System::Drawing::Size(396, 216);
        this->Gates_tab->TabIndex = 3;
        this->Gates_tab->Text = "Gates";
        this->Gates_tab->UseVisualStyleBackColor = true;
        // 
        // RemoveGate_button
        // 
        this->RemoveGate_button->Location = new System::Drawing::Point(6, 185);
        this->RemoveGate_button->Name = "RemoveGate_button";
        this->RemoveGate_button->Size = new System::Drawing::Size(23, 22);
        this->RemoveGate_button->TabIndex = 21;
        this->RemoveGate_button->Text = "-";
        this->RemoveGate_button->UseVisualStyleBackColor = true;
        this->RemoveGate_button->Click += new System::EventHandler(this->RemoveGate_button_Click);
        // 
        // AddGate_button
        // 
        this->AddGate_button->Location = new System::Drawing::Point(157, 185);
        this->AddGate_button->Name = "AddGate_button";
        this->AddGate_button->Size = new System::Drawing::Size(23, 22);
        this->AddGate_button->TabIndex = 19;
        this->AddGate_button->Text = "+";
        this->AddGate_button->UseVisualStyleBackColor = true;
        this->AddGate_button->Click += new System::EventHandler(this->AddGate_button_Click);
        // 
        // Gates_gb
        // 
        this->Gates_gb->Controls->Add(this->label24);
        this->Gates_gb->Controls->Add(this->GateCost_textbox);
        this->Gates_gb->Controls->Add(this->label25);
        this->Gates_gb->Controls->Add(this->GateName_textbox);
        this->Gates_gb->Controls->Add(this->label16);
        this->Gates_gb->Controls->Add(this->label17);
        this->Gates_gb->Controls->Add(this->GateIndex_combo);
        this->Gates_gb->Controls->Add(this->label18);
        this->Gates_gb->Controls->Add(this->GateYLoc_textbox);
        this->Gates_gb->Controls->Add(this->label19);
        this->Gates_gb->Controls->Add(this->GateXLoc_textbox);
        this->Gates_gb->Location = new System::Drawing::Point(185, 3);
        this->Gates_gb->Name = "Gates_gb";
        this->Gates_gb->Size = new System::Drawing::Size(185, 200);
        this->Gates_gb->TabIndex = 20;
        this->Gates_gb->TabStop = false;
        this->Gates_gb->Text = "Edit";
        // 
        // label24
        // 
        this->label24->AutoSize = true;
        this->label24->Font = new System::Drawing::Font("Tahoma", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label24->Location = new System::Drawing::Point(13, 104);
        this->label24->Name = "label24";
        this->label24->Size = new System::Drawing::Size(77, 16);
        this->label24->TabIndex = 51;
        this->label24->Text = "Recruit Cost";
        // 
        // GateCost_textbox
        // 
        this->GateCost_textbox->Location = new System::Drawing::Point(16, 123);
        this->GateCost_textbox->Name = "GateCost_textbox";
        this->GateCost_textbox->Size = new System::Drawing::Size(163, 21);
        this->GateCost_textbox->TabIndex = 52;
        this->GateCost_textbox->TextChanged += new System::EventHandler(this->GateCost_textbox_TextChanged);
        // 
        // label25
        // 
        this->label25->AutoSize = true;
        this->label25->Font = new System::Drawing::Font("Tahoma", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label25->Location = new System::Drawing::Point(13, 54);
        this->label25->Name = "label25";
        this->label25->Size = new System::Drawing::Size(41, 16);
        this->label25->TabIndex = 49;
        this->label25->Text = "Name";
        // 
        // GateName_textbox
        // 
        this->GateName_textbox->Location = new System::Drawing::Point(16, 73);
        this->GateName_textbox->Name = "GateName_textbox";
        this->GateName_textbox->Size = new System::Drawing::Size(163, 21);
        this->GateName_textbox->TabIndex = 50;
        this->GateName_textbox->TextChanged += new System::EventHandler(this->GateName_textbox_TextChanged);
        // 
        // label16
        // 
        this->label16->AutoSize = true;
        this->label16->Font = new System::Drawing::Font("Tahoma", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label16->Location = new System::Drawing::Point(13, 153);
        this->label16->Name = "label16";
        this->label16->Size = new System::Drawing::Size(32, 16);
        this->label16->TabIndex = 43;
        this->label16->Text = "Mob";
        // 
        // label17
        // 
        this->label17->AutoSize = true;
        this->label17->Font = new System::Drawing::Font("Tahoma", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label17->Location = new System::Drawing::Point(12, 12);
        this->label17->Name = "label17";
        this->label17->Size = new System::Drawing::Size(55, 16);
        this->label17->TabIndex = 44;
        this->label17->Text = "Location";
        // 
        // GateIndex_combo
        // 
        this->GateIndex_combo->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
        this->GateIndex_combo->FormattingEnabled = true;
        this->GateIndex_combo->Location = new System::Drawing::Point(16, 169);
        this->GateIndex_combo->Name = "GateIndex_combo";
        this->GateIndex_combo->Size = new System::Drawing::Size(163, 21);
        this->GateIndex_combo->TabIndex = 42;
        this->GateIndex_combo->SelectedIndexChanged += new System::EventHandler(this->GateIndex_combo_SelectedIndexChanged);
        // 
        // label18
        // 
        this->label18->AutoSize = true;
        this->label18->Font = new System::Drawing::Font("Tahoma", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label18->Location = new System::Drawing::Point(104, 32);
        this->label18->Name = "label18";
        this->label18->Size = new System::Drawing::Size(15, 16);
        this->label18->TabIndex = 16;
        this->label18->Text = "Y";
        // 
        // GateYLoc_textbox
        // 
        this->GateYLoc_textbox->Location = new System::Drawing::Point(125, 31);
        this->GateYLoc_textbox->Name = "GateYLoc_textbox";
        this->GateYLoc_textbox->Size = new System::Drawing::Size(54, 21);
        this->GateYLoc_textbox->TabIndex = 12;
        this->GateYLoc_textbox->TextChanged += new System::EventHandler(this->GateYLoc_textbox_TextChanged);
        // 
        // label19
        // 
        this->label19->AutoSize = true;
        this->label19->Font = new System::Drawing::Font("Tahoma", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label19->Location = new System::Drawing::Point(13, 32);
        this->label19->Name = "label19";
        this->label19->Size = new System::Drawing::Size(16, 16);
        this->label19->TabIndex = 15;
        this->label19->Text = "X";
        // 
        // GateXLoc_textbox
        // 
        this->GateXLoc_textbox->Location = new System::Drawing::Point(29, 30);
        this->GateXLoc_textbox->Name = "GateXLoc_textbox";
        this->GateXLoc_textbox->Size = new System::Drawing::Size(51, 21);
        this->GateXLoc_textbox->TabIndex = 14;
        this->GateXLoc_textbox->TextChanged += new System::EventHandler(this->GateXLoc_textbox_TextChanged);
        // 
        // Gates_listbox
        // 
        this->Gates_listbox->Anchor = (static_cast<System::Windows::Forms::AnchorStyles*>((((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Bottom) | System::Windows::Forms::AnchorStyles::Left) | System::Windows::Forms::AnchorStyles::Right)));
        this->Gates_listbox->Font = new System::Drawing::Font("Tahoma", 9.0F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->Gates_listbox->FormattingEnabled = true;
        this->Gates_listbox->ItemHeight = 14;
        this->Gates_listbox->Location = new System::Drawing::Point(7, 10);
        this->Gates_listbox->Name = "Gates_listbox";
        this->Gates_listbox->Size = new System::Drawing::Size(172, 172);
        this->Gates_listbox->TabIndex = 18;
        this->Gates_listbox->SelectedIndexChanged += new System::EventHandler(this->Gates_listbox_SelectedIndexChanged);
        // 
        // Walls_tab
        // 
        this->Walls_tab->Controls->Add(this->RemoveWall_button);
        this->Walls_tab->Controls->Add(this->AddWall_button);
        this->Walls_tab->Controls->Add(this->Walls_gb);
        this->Walls_tab->Controls->Add(this->Walls_listbox);
        this->Walls_tab->Location = new System::Drawing::Point(4, 22);
        this->Walls_tab->Name = "Walls_tab";
        this->Walls_tab->Size = new System::Drawing::Size(396, 216);
        this->Walls_tab->TabIndex = 4;
        this->Walls_tab->Text = "Walls";
        this->Walls_tab->UseVisualStyleBackColor = true;
        // 
        // RemoveWall_button
        // 
        this->RemoveWall_button->Location = new System::Drawing::Point(6, 184);
        this->RemoveWall_button->Name = "RemoveWall_button";
        this->RemoveWall_button->Size = new System::Drawing::Size(22, 22);
        this->RemoveWall_button->TabIndex = 24;
        this->RemoveWall_button->Text = "-";
        this->RemoveWall_button->UseVisualStyleBackColor = true;
        this->RemoveWall_button->Click += new System::EventHandler(this->RemoveWall_button_Click);
        // 
        // AddWall_button
        // 
        this->AddWall_button->Location = new System::Drawing::Point(158, 184);
        this->AddWall_button->Name = "AddWall_button";
        this->AddWall_button->Size = new System::Drawing::Size(22, 22);
        this->AddWall_button->TabIndex = 22;
        this->AddWall_button->Text = "+";
        this->AddWall_button->UseVisualStyleBackColor = true;
        this->AddWall_button->Click += new System::EventHandler(this->AddWall_button_Click);
        // 
        // Walls_gb
        // 
        this->Walls_gb->Controls->Add(this->label26);
        this->Walls_gb->Controls->Add(this->WallCost_textbox);
        this->Walls_gb->Controls->Add(this->label27);
        this->Walls_gb->Controls->Add(this->WallName_textbox);
        this->Walls_gb->Controls->Add(this->label15);
        this->Walls_gb->Controls->Add(this->label20);
        this->Walls_gb->Controls->Add(this->WallIndex_combo);
        this->Walls_gb->Controls->Add(this->label21);
        this->Walls_gb->Controls->Add(this->WallYLoc_textbox);
        this->Walls_gb->Controls->Add(this->label22);
        this->Walls_gb->Controls->Add(this->WallXLoc_textbox);
        this->Walls_gb->Location = new System::Drawing::Point(185, 3);
        this->Walls_gb->Name = "Walls_gb";
        this->Walls_gb->Size = new System::Drawing::Size(185, 207);
        this->Walls_gb->TabIndex = 23;
        this->Walls_gb->TabStop = false;
        this->Walls_gb->Text = "Edit";
        this->Walls_gb->Enter += new System::EventHandler(this->Walls_gb_Enter);
        // 
        // label26
        // 
        this->label26->AutoSize = true;
        this->label26->Font = new System::Drawing::Font("Tahoma", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label26->Location = new System::Drawing::Point(13, 104);
        this->label26->Name = "label26";
        this->label26->Size = new System::Drawing::Size(77, 16);
        this->label26->TabIndex = 55;
        this->label26->Text = "Recruit Cost";
        // 
        // WallCost_textbox
        // 
        this->WallCost_textbox->Location = new System::Drawing::Point(16, 120);
        this->WallCost_textbox->Name = "WallCost_textbox";
        this->WallCost_textbox->Size = new System::Drawing::Size(163, 21);
        this->WallCost_textbox->TabIndex = 56;
        this->WallCost_textbox->TextChanged += new System::EventHandler(this->WallCost_textbox_TextChanged);
        // 
        // label27
        // 
        this->label27->AutoSize = true;
        this->label27->Font = new System::Drawing::Font("Tahoma", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label27->Location = new System::Drawing::Point(13, 55);
        this->label27->Name = "label27";
        this->label27->Size = new System::Drawing::Size(41, 16);
        this->label27->TabIndex = 53;
        this->label27->Text = "Name";
        // 
        // WallName_textbox
        // 
        this->WallName_textbox->Location = new System::Drawing::Point(16, 71);
        this->WallName_textbox->Name = "WallName_textbox";
        this->WallName_textbox->Size = new System::Drawing::Size(163, 21);
        this->WallName_textbox->TabIndex = 54;
        this->WallName_textbox->TextChanged += new System::EventHandler(this->WallName_textbox_TextChanged);
        // 
        // label15
        // 
        this->label15->AutoSize = true;
        this->label15->Font = new System::Drawing::Font("Tahoma", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label15->Location = new System::Drawing::Point(13, 151);
        this->label15->Name = "label15";
        this->label15->Size = new System::Drawing::Size(32, 16);
        this->label15->TabIndex = 43;
        this->label15->Text = "Mob";
        // 
        // label20
        // 
        this->label20->AutoSize = true;
        this->label20->Font = new System::Drawing::Font("Tahoma", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label20->Location = new System::Drawing::Point(13, 12);
        this->label20->Name = "label20";
        this->label20->Size = new System::Drawing::Size(55, 16);
        this->label20->TabIndex = 44;
        this->label20->Text = "Location";
        // 
        // WallIndex_combo
        // 
        this->WallIndex_combo->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
        this->WallIndex_combo->FormattingEnabled = true;
        this->WallIndex_combo->Location = new System::Drawing::Point(16, 167);
        this->WallIndex_combo->Name = "WallIndex_combo";
        this->WallIndex_combo->Size = new System::Drawing::Size(163, 21);
        this->WallIndex_combo->TabIndex = 42;
        this->WallIndex_combo->SelectedIndexChanged += new System::EventHandler(this->WallIndex_combo_SelectedIndexChanged);
        // 
        // label21
        // 
        this->label21->AutoSize = true;
        this->label21->Font = new System::Drawing::Font("Tahoma", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label21->Location = new System::Drawing::Point(106, 30);
        this->label21->Name = "label21";
        this->label21->Size = new System::Drawing::Size(15, 16);
        this->label21->TabIndex = 16;
        this->label21->Text = "Y";
        // 
        // WallYLoc_textbox
        // 
        this->WallYLoc_textbox->Location = new System::Drawing::Point(127, 28);
        this->WallYLoc_textbox->Name = "WallYLoc_textbox";
        this->WallYLoc_textbox->Size = new System::Drawing::Size(52, 21);
        this->WallYLoc_textbox->TabIndex = 12;
        this->WallYLoc_textbox->TextChanged += new System::EventHandler(this->WallYLoc_textbox_TextChanged);
        // 
        // label22
        // 
        this->label22->AutoSize = true;
        this->label22->Font = new System::Drawing::Font("Tahoma", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label22->Location = new System::Drawing::Point(13, 30);
        this->label22->Name = "label22";
        this->label22->Size = new System::Drawing::Size(16, 16);
        this->label22->TabIndex = 15;
        this->label22->Text = "X";
        // 
        // WallXLoc_textbox
        // 
        this->WallXLoc_textbox->Location = new System::Drawing::Point(29, 28);
        this->WallXLoc_textbox->Name = "WallXLoc_textbox";
        this->WallXLoc_textbox->Size = new System::Drawing::Size(51, 21);
        this->WallXLoc_textbox->TabIndex = 14;
        this->WallXLoc_textbox->TextChanged += new System::EventHandler(this->WallXLoc_textbox_TextChanged);
        // 
        // Walls_listbox
        // 
        this->Walls_listbox->Anchor = (static_cast<System::Windows::Forms::AnchorStyles*>((((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Bottom) | System::Windows::Forms::AnchorStyles::Left) | System::Windows::Forms::AnchorStyles::Right)));
        this->Walls_listbox->Font = new System::Drawing::Font("Tahoma", 9.0F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->Walls_listbox->FormattingEnabled = true;
        this->Walls_listbox->ItemHeight = 14;
        this->Walls_listbox->Location = new System::Drawing::Point(7, 10);
        this->Walls_listbox->Name = "Walls_listbox";
        this->Walls_listbox->Size = new System::Drawing::Size(172, 172);
        this->Walls_listbox->TabIndex = 21;
        this->Walls_listbox->SelectedIndexChanged += new System::EventHandler(this->Walls_listbox_SelectedIndexChanged);
        // 
        // Siege_tab
        // 
        this->Siege_tab->Controls->Add(this->RemoveSiege_button);
        this->Siege_tab->Controls->Add(this->AddSiege_button);
        this->Siege_tab->Controls->Add(this->Siege_gb);
        this->Siege_tab->Controls->Add(this->Siege_listbox);
        this->Siege_tab->Location = new System::Drawing::Point(4, 22);
        this->Siege_tab->Name = "Siege_tab";
        this->Siege_tab->Size = new System::Drawing::Size(396, 216);
        this->Siege_tab->TabIndex = 6;
        this->Siege_tab->Text = "Siege";
        this->Siege_tab->UseVisualStyleBackColor = true;
        // 
        // RemoveSiege_button
        // 
        this->RemoveSiege_button->Location = new System::Drawing::Point(6, 188);
        this->RemoveSiege_button->Name = "RemoveSiege_button";
        this->RemoveSiege_button->Size = new System::Drawing::Size(23, 22);
        this->RemoveSiege_button->TabIndex = 22;
        this->RemoveSiege_button->Text = "-";
        this->RemoveSiege_button->UseVisualStyleBackColor = true;
        this->RemoveSiege_button->Click += new System::EventHandler(this->RemoveSiege_button_Click);
        // 
        // AddSiege_button
        // 
        this->AddSiege_button->Location = new System::Drawing::Point(156, 188);
        this->AddSiege_button->Name = "AddSiege_button";
        this->AddSiege_button->Size = new System::Drawing::Size(24, 22);
        this->AddSiege_button->TabIndex = 20;
        this->AddSiege_button->Text = "+";
        this->AddSiege_button->UseVisualStyleBackColor = true;
        this->AddSiege_button->Click += new System::EventHandler(this->AddSiege_button_Click);
        // 
        // Siege_gb
        // 
        this->Siege_gb->Controls->Add(this->label36);
        this->Siege_gb->Controls->Add(this->SiegeCost_textbox);
        this->Siege_gb->Controls->Add(this->label37);
        this->Siege_gb->Controls->Add(this->SiegeName_textbox);
        this->Siege_gb->Controls->Add(this->label38);
        this->Siege_gb->Controls->Add(this->label39);
        this->Siege_gb->Controls->Add(this->SiegeIndex_combo);
        this->Siege_gb->Controls->Add(this->label40);
        this->Siege_gb->Controls->Add(this->SiegeYLoc_textbox);
        this->Siege_gb->Controls->Add(this->label41);
        this->Siege_gb->Controls->Add(this->SiegeXLoc_textbox);
        this->Siege_gb->Location = new System::Drawing::Point(185, 7);
        this->Siege_gb->Name = "Siege_gb";
        this->Siege_gb->Size = new System::Drawing::Size(185, 203);
        this->Siege_gb->TabIndex = 21;
        this->Siege_gb->TabStop = false;
        this->Siege_gb->Text = "Edit";
        // 
        // label36
        // 
        this->label36->AutoSize = true;
        this->label36->Font = new System::Drawing::Font("Tahoma", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label36->Location = new System::Drawing::Point(12, 105);
        this->label36->Name = "label36";
        this->label36->Size = new System::Drawing::Size(77, 16);
        this->label36->TabIndex = 47;
        this->label36->Text = "Recruit Cost";
        // 
        // SiegeCost_textbox
        // 
        this->SiegeCost_textbox->Location = new System::Drawing::Point(16, 121);
        this->SiegeCost_textbox->Name = "SiegeCost_textbox";
        this->SiegeCost_textbox->Size = new System::Drawing::Size(163, 21);
        this->SiegeCost_textbox->TabIndex = 48;
        this->SiegeCost_textbox->TextChanged += new System::EventHandler(this->SiegeCost_textbox_TextChanged);
        // 
        // label37
        // 
        this->label37->AutoSize = true;
        this->label37->Font = new System::Drawing::Font("Tahoma", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label37->Location = new System::Drawing::Point(13, 56);
        this->label37->Name = "label37";
        this->label37->Size = new System::Drawing::Size(41, 16);
        this->label37->TabIndex = 45;
        this->label37->Text = "Name";
        // 
        // SiegeName_textbox
        // 
        this->SiegeName_textbox->Location = new System::Drawing::Point(16, 72);
        this->SiegeName_textbox->Name = "SiegeName_textbox";
        this->SiegeName_textbox->Size = new System::Drawing::Size(163, 21);
        this->SiegeName_textbox->TabIndex = 46;
        this->SiegeName_textbox->TextChanged += new System::EventHandler(this->SiegeName_textbox_TextChanged);
        // 
        // label38
        // 
        this->label38->AutoSize = true;
        this->label38->Font = new System::Drawing::Font("Tahoma", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label38->Location = new System::Drawing::Point(12, 152);
        this->label38->Name = "label38";
        this->label38->Size = new System::Drawing::Size(32, 16);
        this->label38->TabIndex = 43;
        this->label38->Text = "Mob";
        // 
        // label39
        // 
        this->label39->AutoSize = true;
        this->label39->Font = new System::Drawing::Font("Tahoma", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label39->Location = new System::Drawing::Point(12, 12);
        this->label39->Name = "label39";
        this->label39->Size = new System::Drawing::Size(55, 16);
        this->label39->TabIndex = 44;
        this->label39->Text = "Location";
        // 
        // SiegeIndex_combo
        // 
        this->SiegeIndex_combo->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
        this->SiegeIndex_combo->FormattingEnabled = true;
        this->SiegeIndex_combo->Location = new System::Drawing::Point(16, 168);
        this->SiegeIndex_combo->Name = "SiegeIndex_combo";
        this->SiegeIndex_combo->Size = new System::Drawing::Size(163, 21);
        this->SiegeIndex_combo->TabIndex = 42;
        this->SiegeIndex_combo->SelectedIndexChanged += new System::EventHandler(this->SiegeIndex_combo_SelectedIndexChanged);
        // 
        // label40
        // 
        this->label40->AutoSize = true;
        this->label40->Font = new System::Drawing::Font("Tahoma", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label40->Location = new System::Drawing::Point(104, 30);
        this->label40->Name = "label40";
        this->label40->Size = new System::Drawing::Size(15, 16);
        this->label40->TabIndex = 16;
        this->label40->Text = "Y";
        // 
        // SiegeYLoc_textbox
        // 
        this->SiegeYLoc_textbox->Location = new System::Drawing::Point(125, 28);
        this->SiegeYLoc_textbox->Name = "SiegeYLoc_textbox";
        this->SiegeYLoc_textbox->Size = new System::Drawing::Size(54, 21);
        this->SiegeYLoc_textbox->TabIndex = 12;
        this->SiegeYLoc_textbox->TextChanged += new System::EventHandler(this->SiegeYLoc_textbox_TextChanged);
        // 
        // label41
        // 
        this->label41->AutoSize = true;
        this->label41->Font = new System::Drawing::Font("Tahoma", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label41->Location = new System::Drawing::Point(13, 30);
        this->label41->Name = "label41";
        this->label41->Size = new System::Drawing::Size(16, 16);
        this->label41->TabIndex = 15;
        this->label41->Text = "X";
        // 
        // SiegeXLoc_textbox
        // 
        this->SiegeXLoc_textbox->Location = new System::Drawing::Point(29, 28);
        this->SiegeXLoc_textbox->Name = "SiegeXLoc_textbox";
        this->SiegeXLoc_textbox->Size = new System::Drawing::Size(54, 21);
        this->SiegeXLoc_textbox->TabIndex = 14;
        this->SiegeXLoc_textbox->TextChanged += new System::EventHandler(this->SiegeXLoc_textbox_TextChanged);
        // 
        // Siege_listbox
        // 
        this->Siege_listbox->Anchor = (static_cast<System::Windows::Forms::AnchorStyles*>((((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Bottom) | System::Windows::Forms::AnchorStyles::Left) | System::Windows::Forms::AnchorStyles::Right)));
        this->Siege_listbox->Font = new System::Drawing::Font("Tahoma", 9.0F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->Siege_listbox->FormattingEnabled = true;
        this->Siege_listbox->ItemHeight = 14;
        this->Siege_listbox->Location = new System::Drawing::Point(7, 14);
        this->Siege_listbox->Name = "Siege_listbox";
        this->Siege_listbox->Size = new System::Drawing::Size(192, 172);
        this->Siege_listbox->TabIndex = 19;
        this->Siege_listbox->SelectedIndexChanged += new System::EventHandler(this->Siege_listbox_SelectedIndexChanged);
        // 
        // flags_tab
        // 
        this->flags_tab->Controls->Add(this->RemoveFlag_button);
        this->flags_tab->Controls->Add(this->AddFlag_button);
        this->flags_tab->Controls->Add(this->Flag_gb);
        this->flags_tab->Controls->Add(this->Flags_listbox);
        this->flags_tab->Location = new System::Drawing::Point(4, 22);
        this->flags_tab->Name = "flags_tab";
        this->flags_tab->Padding = new System::Windows::Forms::Padding(3);
        this->flags_tab->Size = new System::Drawing::Size(396, 216);
        this->flags_tab->TabIndex = 7;
        this->flags_tab->Text = "Flags";
        this->flags_tab->UseVisualStyleBackColor = true;
        // 
        // RemoveFlag_button
        // 
        this->RemoveFlag_button->Location = new System::Drawing::Point(7, 185);
        this->RemoveFlag_button->Name = "RemoveFlag_button";
        this->RemoveFlag_button->Size = new System::Drawing::Size(23, 22);
        this->RemoveFlag_button->TabIndex = 22;
        this->RemoveFlag_button->Text = "-";
        this->RemoveFlag_button->UseVisualStyleBackColor = true;
        this->RemoveFlag_button->Click += new System::EventHandler(this->RemoveFlag_button_Click);
        // 
        // AddFlag_button
        // 
        this->AddFlag_button->Location = new System::Drawing::Point(175, 185);
        this->AddFlag_button->Name = "AddFlag_button";
        this->AddFlag_button->Size = new System::Drawing::Size(24, 22);
        this->AddFlag_button->TabIndex = 20;
        this->AddFlag_button->Text = "+";
        this->AddFlag_button->UseVisualStyleBackColor = true;
        this->AddFlag_button->Click += new System::EventHandler(this->AddFlag_button_Click);
        // 
        // Flag_gb
        // 
        this->Flag_gb->Controls->Add(this->label42);
        this->Flag_gb->Controls->Add(this->FlagFilename_textbox);
        this->Flag_gb->Controls->Add(this->label43);
        this->Flag_gb->Controls->Add(this->FlagName_textbox);
        this->Flag_gb->Controls->Add(this->label45);
        this->Flag_gb->Controls->Add(this->label46);
        this->Flag_gb->Controls->Add(this->FlagYLoc_textbox);
        this->Flag_gb->Controls->Add(this->label47);
        this->Flag_gb->Controls->Add(this->FlagXLoc_textbox);
        this->Flag_gb->Location = new System::Drawing::Point(205, 4);
        this->Flag_gb->Name = "Flag_gb";
        this->Flag_gb->Size = new System::Drawing::Size(185, 203);
        this->Flag_gb->TabIndex = 21;
        this->Flag_gb->TabStop = false;
        this->Flag_gb->Text = "Edit";
        // 
        // label42
        // 
        this->label42->AutoSize = true;
        this->label42->Font = new System::Drawing::Font("Tahoma", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label42->Location = new System::Drawing::Point(12, 105);
        this->label42->Name = "label42";
        this->label42->Size = new System::Drawing::Size(60, 16);
        this->label42->TabIndex = 47;
        this->label42->Text = "Filename";
        // 
        // FlagFilename_textbox
        // 
        this->FlagFilename_textbox->Location = new System::Drawing::Point(16, 121);
        this->FlagFilename_textbox->Name = "FlagFilename_textbox";
        this->FlagFilename_textbox->Size = new System::Drawing::Size(163, 21);
        this->FlagFilename_textbox->TabIndex = 48;
        this->FlagFilename_textbox->TextChanged += new System::EventHandler(this->FlagFilename_textbox_TextChanged);
        // 
        // label43
        // 
        this->label43->AutoSize = true;
        this->label43->Font = new System::Drawing::Font("Tahoma", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label43->Location = new System::Drawing::Point(13, 56);
        this->label43->Name = "label43";
        this->label43->Size = new System::Drawing::Size(41, 16);
        this->label43->TabIndex = 45;
        this->label43->Text = "Name";
        // 
        // FlagName_textbox
        // 
        this->FlagName_textbox->Location = new System::Drawing::Point(16, 72);
        this->FlagName_textbox->Name = "FlagName_textbox";
        this->FlagName_textbox->Size = new System::Drawing::Size(163, 21);
        this->FlagName_textbox->TabIndex = 46;
        this->FlagName_textbox->TextChanged += new System::EventHandler(this->FlagName_textbox_TextChanged);
        // 
        // label45
        // 
        this->label45->AutoSize = true;
        this->label45->Font = new System::Drawing::Font("Tahoma", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label45->Location = new System::Drawing::Point(12, 12);
        this->label45->Name = "label45";
        this->label45->Size = new System::Drawing::Size(55, 16);
        this->label45->TabIndex = 44;
        this->label45->Text = "Location";
        // 
        // label46
        // 
        this->label46->AutoSize = true;
        this->label46->Font = new System::Drawing::Font("Tahoma", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label46->Location = new System::Drawing::Point(104, 30);
        this->label46->Name = "label46";
        this->label46->Size = new System::Drawing::Size(15, 16);
        this->label46->TabIndex = 16;
        this->label46->Text = "Y";
        // 
        // FlagYLoc_textbox
        // 
        this->FlagYLoc_textbox->Location = new System::Drawing::Point(125, 28);
        this->FlagYLoc_textbox->Name = "FlagYLoc_textbox";
        this->FlagYLoc_textbox->Size = new System::Drawing::Size(54, 21);
        this->FlagYLoc_textbox->TabIndex = 12;
        this->FlagYLoc_textbox->TextChanged += new System::EventHandler(this->FlagYLoc_textbox_TextChanged);
        // 
        // label47
        // 
        this->label47->AutoSize = true;
        this->label47->Font = new System::Drawing::Font("Tahoma", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label47->Location = new System::Drawing::Point(13, 30);
        this->label47->Name = "label47";
        this->label47->Size = new System::Drawing::Size(16, 16);
        this->label47->TabIndex = 15;
        this->label47->Text = "X";
        // 
        // FlagXLoc_textbox
        // 
        this->FlagXLoc_textbox->Location = new System::Drawing::Point(29, 28);
        this->FlagXLoc_textbox->Name = "FlagXLoc_textbox";
        this->FlagXLoc_textbox->Size = new System::Drawing::Size(54, 21);
        this->FlagXLoc_textbox->TabIndex = 14;
        this->FlagXLoc_textbox->TextChanged += new System::EventHandler(this->FlagXLoc_textbox_TextChanged);
        // 
        // Flags_listbox
        // 
        this->Flags_listbox->Anchor = (static_cast<System::Windows::Forms::AnchorStyles*>((((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Bottom) | System::Windows::Forms::AnchorStyles::Left) | System::Windows::Forms::AnchorStyles::Right)));
        this->Flags_listbox->Font = new System::Drawing::Font("Tahoma", 9.0F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->Flags_listbox->FormattingEnabled = true;
        this->Flags_listbox->ItemHeight = 14;
        this->Flags_listbox->Location = new System::Drawing::Point(7, 11);
        this->Flags_listbox->Name = "Flags_listbox";
        this->Flags_listbox->Size = new System::Drawing::Size(192, 172);
        this->Flags_listbox->TabIndex = 19;
        this->Flags_listbox->SelectedIndexChanged += new System::EventHandler(this->Flags_listbox_SelectedIndexChanged);
        // 
        // AddConq_button
        // 
        this->AddConq_button->Location = new System::Drawing::Point(175, 231);
        this->AddConq_button->Name = "AddConq_button";
        this->AddConq_button->Size = new System::Drawing::Size(27, 23);
        this->AddConq_button->TabIndex = 10;
        this->AddConq_button->Text = "+";
        this->AddConq_button->UseVisualStyleBackColor = true;
        this->AddConq_button->Click += new System::EventHandler(this->AddConq_button_Click);
        // 
        // RemoveConq_button
        // 
        this->RemoveConq_button->Location = new System::Drawing::Point(11, 231);
        this->RemoveConq_button->Name = "RemoveConq_button";
        this->RemoveConq_button->Size = new System::Drawing::Size(27, 23);
        this->RemoveConq_button->TabIndex = 11;
        this->RemoveConq_button->Text = "-";
        this->RemoveConq_button->UseVisualStyleBackColor = true;
        this->RemoveConq_button->Click += new System::EventHandler(this->RemoveConq_button_Click);
        // 
        // ConquestInfoForm
        // 
        this->AutoScaleDimensions = new System::Drawing::SizeF(6.0F, 13.0F);
        this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
        this->ClientSize = new System::Drawing::Size(614, 262);
        this->Controls->Add(this->RemoveConq_button);
        this->Controls->Add(this->AddConq_button);
        this->Controls->Add(this->Main_tabs);
        this->Controls->Add(this->ConquestInfoListBox);
        this->Font = new System::Drawing::Font("Tahoma", 8.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->Name = "ConquestInfoForm";
        this->Text = "Conquest Config";
        this->FormClosed += new System::Windows::Forms::FormClosedEventHandler(this->ConquestInfoForm_FormClosed);
        this->Load += new System::EventHandler(this->ConquestInfoForm_Load);
        this->Main_tabs->ResumeLayout(false);
        this->Info_tab->ResumeLayout(false);
        this->Info_tab->PerformLayout();
        this->Maps_tab->ResumeLayout(false);
        this->Maps_tab->PerformLayout();
        this->Times_tab->ResumeLayout(false);
        this->Times_tab->PerformLayout();
        this->WarTimes_gb->ResumeLayout(false);
        this->WarTimes_gb->PerformLayout();
        (static_cast<System::ComponentModel::ISupportInitialize*>(this->StartHour_num))->EndInit();
        (static_cast<System::ComponentModel::ISupportInitialize*>(this->WarLength_num))->EndInit();
        this->games_tab->ResumeLayout(false);
        this->GameTabs->ResumeLayout(false);
        this->palace_tab->ResumeLayout(false);
        this->palace_tab->PerformLayout();
        this->king_tab->ResumeLayout(false);
        this->Objective_gb->ResumeLayout(false);
        this->Objective_gb->PerformLayout();
        this->control_tab->ResumeLayout(false);
        this->Control_gb->ResumeLayout(false);
        this->Control_gb->PerformLayout();
        this->Guards_tab->ResumeLayout(false);
        this->Archer_gb->ResumeLayout(false);
        this->Archer_gb->PerformLayout();
        this->Gates_tab->ResumeLayout(false);
        this->Gates_gb->ResumeLayout(false);
        this->Gates_gb->PerformLayout();
        this->Walls_tab->ResumeLayout(false);
        this->Walls_gb->ResumeLayout(false);
        this->Walls_gb->PerformLayout();
        this->Siege_tab->ResumeLayout(false);
        this->Siege_gb->ResumeLayout(false);
        this->Siege_gb->PerformLayout();
        this->flags_tab->ResumeLayout(false);
        this->Flag_gb->ResumeLayout(false);
        this->Flag_gb->PerformLayout();
        this->ResumeLayout(false);

    }
}
